Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: ffffin on February 02, 2017, 12:02:34 AM
-
Hey guys,
I'm new to Unity and Playmaker, sorry for my stupid question but I just can't solve it by myself.
In short, the problem is that the action "touch object event" can not respond. I used "touch object event" to achieve the effect that an icon will be shaked when it is touched.
In this Scene, there are five icons in different positions. So I think I have to use "touch object event" action instead of "touch event".
But I haven't figured out the reason why it did not respond. So I came here and ask for help.
And apologize for my bad English.
Screenshots are as follows.
(http://i699.photobucket.com/albums/vv358/hallowing/touch01_zps6qnwpszu.png?t=1485441443)
(http://i699.photobucket.com/albums/vv358/hallowing/touch02_zpsjpxhhp9l.png?t=1485441466)
-
Hi,
are you testing this with a touch device or mouse?
If you are testing with a mouse it won't work.
-
Thank you for your reply.
I really tested that with a touch device (android).
The "touch object event" can not respond on the device, but "touch event" can respond well.
I do not quite understand where the mistakes are in my settings :'(.
-
Hi,
Does your object have a collider?
and how far is it away from the camera?
I just tested it and 'touch object event' seems to work fine.
If you can not get it to work try creating a cube, set the position to 0,0,0
place a fsm on it and add 'touch object event' in the 1st state and make another state (empty or add a wait action and transition back to the 1st state)
-
Hi,
thanks for your reply.
I created a new scene and tested the action by the method creating a cube.
It works fine.
So I realized that the problem should be NGUI. Because I can't use "touch object event" on NGUI object.
I searched some answers like:
http://hutonggames.com/playmakerforum/index.php?topic=8933.0
and
http://hutonggames.com/playmakerforum/index.php?topic=5236.0
But the PlayMakerNgui doesn't work well in my Unity...
Should I wait for a new PlayMakerNgui version or change NGUI to uGui in my project?
Anyway, you helped me to found out the problem! Thank you very much!
-
Hi,
Yes, NGUI has its own system, so you have to use specific tools.
what doesn't work for you specifically with the PlayMakerNGUI?
Bye,
Jean