playMaker

Author Topic: Touch object event no response  (Read 2856 times)

ffffin

  • Playmaker Newbie
  • *
  • Posts: 3
Touch object event no response
« 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.



djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Touch object event no response
« Reply #1 on: February 02, 2017, 02:26:17 PM »
Hi,
are you testing this with a touch device or mouse?

If you are testing with a mouse it won't work.

ffffin

  • Playmaker Newbie
  • *
  • Posts: 3
Re: Touch object event no response
« Reply #2 on: February 07, 2017, 07:47:55 AM »
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 :'(.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Touch object event no response
« Reply #3 on: February 08, 2017, 08:26:21 AM »
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)

ffffin

  • Playmaker Newbie
  • *
  • Posts: 3
Re: Touch object event no response
« Reply #4 on: February 11, 2017, 09:57:41 AM »
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!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Touch object event no response
« Reply #5 on: February 13, 2017, 02:54:27 AM »
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