playMaker

Author Topic: Touch event on UGUI??[SOLVED]  (Read 103 times)

iikii

  • Playmaker Newbie
  • *
  • Posts: 41
    • View Profile
Touch event on UGUI??[SOLVED]
« on: August 06, 2017, 03:06:35 AM »
Hi, i am wondering how do I enable touch events on UGUI for example touching the raw image in the canvas to trigger?

I can do that on 2d sprite but not on UGUI images.

thanks
« Last Edit: August 10, 2017, 12:04:19 AM by jeanfabre »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 1983
    • View Profile
    • jinxtergames
Re: Touch event on UGUI??
« Reply #1 on: August 06, 2017, 03:31:04 AM »
Hi,
You need to get the Ugui proxy full on the Ecosystem

if you have it you can add the "PlayMakerUGuiPointerEventsProxy" Component to your Ui GameObject.
in the component you can set the target gameobject to target the fsm that you want to use.
The events you can set to your own global events.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 1983
    • View Profile
    • jinxtergames
Re: Touch event on UGUI??
« Reply #2 on: August 06, 2017, 03:33:07 AM »
i forgot to say that there are some other Playmaker ugui proxies that might be useful, for example the drag proxy.

iikii

  • Playmaker Newbie
  • *
  • Posts: 41
    • View Profile
Re: Touch event on UGUI??
« Reply #3 on: August 06, 2017, 06:26:03 AM »
Thank you, got it working right now ;D