playMaker

Author Topic: A 'Touch GUI Event' action that uses uGUI?[SOLVED]  (Read 2737 times)

Spunkyinteractive

  • Playmaker Newbie
  • *
  • Posts: 22
A 'Touch GUI Event' action that uses uGUI?[SOLVED]
« on: November 11, 2016, 03:39:46 AM »
I'm trying to use the 'Touch GUI Event' action but it's only setup for the legacy ui.

I cannot find anything that has similar functionality (touch begin, touch ended, etc..) that uses the current uGUI (UI Sprites).

Basically i'm trying to send an event when a button has been touched and then another event when that button has been let go of.
Thoughts?

« Last Edit: November 14, 2016, 01:06:23 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15622
  • Official Playmaker Support
Re: A 'Touch GUI Event' action that uses uGUI?
« Reply #1 on: November 11, 2016, 04:21:14 AM »
Hi,

 you need to use the uGui proxies ( available on the Ecosystem)

you'll also find a lot of samples on the ecosystem (search ugui and filter by sample)

you'll need the eventPointer proxy to catch them touched events.


 Bye,

 Jean

Spunkyinteractive

  • Playmaker Newbie
  • *
  • Posts: 22
Re: A 'Touch GUI Event' action that uses uGUI?
« Reply #2 on: November 11, 2016, 09:20:48 PM »
Thanks for the reply Jean.
I do have the uGui proxies already. The only action in there that i can see that comes close to the functionality needed is the uGui Button on Click event. However this doesn't store the info of the button still being held down or being let go of.

Where can i find 'eventPointer proxy' ? I dont see any action for this, nor do can i find this in the ecosystem.

-Stephen

Spunkyinteractive

  • Playmaker Newbie
  • *
  • Posts: 22
Re: A 'Touch GUI Event' action that uses uGUI?
« Reply #3 on: November 11, 2016, 09:37:03 PM »
Actually i was able to find this video:
which shows adding the pointer events proxy component and setting up custom ugui transitions 'on pointer up' and 'on pointer down'

this might solve my issue.

thanks,
-Stephen