playMaker

Author Topic: Sprite Click - Unity 2018  (Read 1590 times)

Coffeebreakmtl

  • Playmaker Newbie
  • *
  • Posts: 1
Sprite Click - Unity 2018
« on: September 14, 2018, 12:06:39 PM »
Ok I'm totally lost here.
Using Unity 2018.2.6 - Playmaker lastest version.

I'm struggling to register a simple click on a Sprite.
I've done everything using the Unity OnClick Send EventString for the button.
(So without importy the uGUI Proxy).

Now I'm stuggling making a simple Sprite register a Click, I'm tried with the UGui Proxy, without the proxy. Added a Polygon 2D Collider to my sprite, tried a Box 2D collider...
The Event UI Click never get trigger (FSM on the sprite itself, blank scene)....

I'm sure it's a trivial trhing that I missed....

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Sprite Click - Unity 2018
« Reply #1 on: September 21, 2018, 02:55:23 AM »
Hi,

 Did you managed to get it working?

 Bye,

 Jean

miguelfanclub

  • Full Member
  • ***
  • Posts: 165
Re: Sprite Click - Unity 2018
« Reply #2 on: September 23, 2018, 08:23:16 AM »
I always use "U Gui On Pointer Enter Event" Action.

Also, when It doesnt work, most of the times is because Im clicking on something else even if its not visible.

To know whats causing it, I click on "EventSystem" in hierachy and then I can see who is recieving the clicks.

mememan

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Sprite Click - Unity 2018
« Reply #3 on: September 23, 2018, 10:57:50 AM »
Try using a "mouse pick 2d event"