playMaker

Author Topic: How to track UI Button click on canvas  (Read 1162 times)

playmakertester

  • Full Member
  • ***
  • Posts: 211
How to track UI Button click on canvas
« on: September 04, 2020, 06:20:14 AM »
UI Button On Click Event does not work.

I spent several hours researching articles on the net to get Button on canvas to work, but I have no idea how to send an event from Button on click.

The UI Button On Click Event was an action that looked like it, but it doesn't work, even after adjusting it.
Could you please tell me how to make the Button on canvas work in Playmaker?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: How to track UI Button click on canvas
« Reply #1 on: September 04, 2020, 03:19:09 PM »
Hi.
Make sure that its not behind some other canvas object (images etc) even when the image is invisible.

try on a new scene to create a canvas and only a button and see if the action work.

if that works try adding a image and move it (in the hierarchy) for example above the button and see if it still works and also try it below the button.

ui object have a check box called raycast target, play around with that as well :)

playmakertester

  • Full Member
  • ***
  • Posts: 211
Re: How to track UI Button click on canvas[SLOVED]
« Reply #2 on: September 04, 2020, 05:02:26 PM »
Thanks!
Let me try