Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: ETGgames on August 05, 2015, 03:23:24 PM

Title: How do I create a simple UI button with unity 5 and playmaker?!?!
Post by: ETGgames on August 05, 2015, 03:23:24 PM
This seems like it should be the easiest thing in the world.. I have two canvas panels. I want one panel to activate a global boolean when its pressed. I want it so it can be pressed with a computer mouse of a touch on mobile devices. However, the panel doesn't see, to recognise my touch! Ive tried mouse pick event, touch event etc but I can't do it HELP!
Title: Re: How do I create a simple UI button with unity 5 and playmaker?!?!
Post by: 600 on August 05, 2015, 03:42:22 PM
With Canvas use uGUI (https://hutonggames.fogbugz.com/default.asp?W1192) actions & proxy.
Here is a tutorial (https://www.youtube.com/watch?v=KZCtGySZ4AI)
Title: Re: How do I create a simple UI button with unity 5 and playmaker?!?!
Post by: ETGgames on August 05, 2015, 04:03:47 PM
Ok, but that doesn't support on press. It supports buttons but buttons only register when a touch is released. I want it so when a touch is pressed. How can it be this hard to simply set up a simple gui using playmaker?
Title: Re: How do I create a simple UI button with unity 5 and playmaker?!?!
Post by: ergin on August 05, 2015, 05:37:39 PM
Hello I'm a newbie too. Very active Forum... :)

Did you try "Play Maker U Gui Pointer Events Proxy (Script)" ?

Title: Re: How do I create a simple UI button with unity 5 and playmaker?!?!
Post by: jeanfabre on August 06, 2015, 01:49:34 AM
Hi,

 Within the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181), you'll find a lot of uGui examples on how things work.

Follow me on twitter (https://twitter.com/JeanAtPlayMaker) to get notified of Activity for the Ecosystem.

Study all this and get back to me mid august if you are still stuck. It's funny that you mention this, because a section of my demo will be exactly on how you can plug a UI button with Playmaker :)

Also, It's very important that you make a search within this forum when you have some trouble, chances are someone else had the same issue and got replies like:

http://hutonggames.com/playmakerforum/index.php?topic=9642.msg45723#msg45723

Lane's solution on that threads is direct and requires no proxies, so try this one.


 Bye,

 Jean
Title: Re: How do I create a simple UI button with unity 5 and playmaker?!?!
Post by: ETGgames on August 06, 2015, 10:41:10 AM
Ok, thanks, i will look into it. Its just almost all the tutorials seem to be depreciated for the new ui and the latest versions. Thanks though.