playMaker

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

Coffeebreakmtl

  • Playmaker Newbie
  • *
  • Posts: 1
    • View Profile
Sprite Click - Unity 2018
« on: September 14, 2018, 09:06:39 AM »
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: 14500
  • Official Playmaker Support
    • View Profile
Re: Sprite Click - Unity 2018
« Reply #1 on: September 20, 2018, 11:55:23 PM »
Hi,

 Did you managed to get it working?

 Bye,

 Jean

miguelfanclub

  • Full Member
  • ***
  • Posts: 151
    • View Profile
Re: Sprite Click - Unity 2018
« Reply #2 on: September 23, 2018, 05: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
    • View Profile
Re: Sprite Click - Unity 2018
« Reply #3 on: September 23, 2018, 07:57:50 AM »
Try using a "mouse pick 2d event"