I need to know on what object/element user clicked.
this.input.on(‘pointerdown’,(pointer)=>{console.log(‘USER CLICKED ON’???)})
I need to know on what object/element user clicked.
this.input.on(‘pointerdown’,(pointer)=>{console.log(‘USER CLICKED ON’???)})
May be easier with GAMEOBJECT_DOWN event. gameObject
is 2nd arg.