Playmaker Forum

PlayMaker News => General Discussion => Topic started by: kentcheung2000 on January 25, 2019, 01:13:37 PM

Title: On Click events same as Touch in mobile devices?
Post by: kentcheung2000 on January 25, 2019, 01:13:37 PM
Hi,

I am using on click events to activate a button.  If it is on mobile devices, is it the same as touch?

If it is not the same, what action I can use to simulate a touch events?
Title: Re: On Click events same as Touch in mobile devices?
Post by: jeanfabre on January 28, 2019, 02:31:39 AM
Hi,

 no, the UI system uses a concept called Pointer, which includes touches but not only,

If you want to simulate touch events, you need to use Unity Remote with your device: https://docs.unity3d.com/Manual/UnityRemote5.html

Bye,

 Jean
Title: Re: On Click events same as Touch in mobile devices?
Post by: christougher on January 30, 2019, 03:15:18 AM
Unity UGUI buttons will detect both clicks and touches without any fuss, the onClick playmaker event will work just fine, is the gui button itself that sends that event not the mouse itself...