playMaker

Author Topic: How do I create a simple UI button with unity 5 and playmaker?!?!  (Read 6182 times)

ETGgames

  • Junior Playmaker
  • **
  • Posts: 56
    • ETGgames
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!
« Last Edit: August 05, 2015, 04:32:58 PM by ETGgames »

600

  • Beta Group
  • Hero Member
  • *
  • Posts: 713
    • Flashing Lights
Re: How do I create a simple UI button with unity 5 and playmaker?!?!
« Reply #1 on: August 05, 2015, 03:42:22 PM »
With Canvas use uGUI actions & proxy.
Here is a tutorial

ETGgames

  • Junior Playmaker
  • **
  • Posts: 56
    • ETGgames
Re: How do I create a simple UI button with unity 5 and playmaker?!?!
« Reply #2 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?

ergin

  • Junior Playmaker
  • **
  • Posts: 86
Re: How do I create a simple UI button with unity 5 and playmaker?!?!
« Reply #3 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)" ?


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How do I create a simple UI button with unity 5 and playmaker?!?!
« Reply #4 on: August 06, 2015, 01:49:34 AM »
Hi,

 Within the Ecosystem, you'll find a lot of uGui examples on how things work.

Follow me on twitter 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

ETGgames

  • Junior Playmaker
  • **
  • Posts: 56
    • ETGgames
Re: How do I create a simple UI button with unity 5 and playmaker?!?!
« Reply #5 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.