Playmaker Forum

PlayMaker News => General Discussion => Topic started by: PolyMad on March 08, 2019, 07:51:51 PM

Title: Playmaker UGui and PlaymakerGUI
Post by: PolyMad on March 08, 2019, 07:51:51 PM
I've downloaded and installed the Playmaker UGui proxy, but have yet to use it.
However, Playmaker keeps adding the standard PlaymakerGUI to the scene.
Is it correct? How does this work? The tutorial video is quite old, from 2014, so I don't know what to do and if it's still valid. Much water flowed under the bridges since then.
Title: Re: Playmaker UGui and PlaymakerGUI
Post by: PolyMad on March 09, 2019, 12:40:18 PM
Any info on this? I don't know how to proceed, the videos are old and weak, is there any tutorial or example scene with some menu stuff?
I need to do a DRAG BUTTON, an area that when the user will keep pressed, a global transition will be called on another object and I really don't know where to start here...
And I also need to make other buttons where if the user keeps them pressed they execute a function.
Title: Re: Playmaker UGui and PlaymakerGUI
Post by: Alex Chouls on March 09, 2019, 01:33:28 PM
UGui support is built in since version 1.9.0 so you no longer need to import the uGui add-on. There are some advanced features in the proxy that you might still need, but I would start with the built-in support first.

PlayMakerGUI is a component added to optimize the old GUI and GUILayout actions, batching them into a single OnGUI call. It also draws the state labels over GameObjects with FSMs. It is separate from the new uGUI system.
Title: Re: Playmaker UGui and PlaymakerGUI
Post by: Alex Chouls on March 09, 2019, 01:57:01 PM
For keeping a button pressed, this example might help:
https://hutonggames.fogbugz.com/f/page?W1709

The example uses MOUSE_DOWN and MOUSE_UP but the same principle applies to UI POINTER DOWN and UI POINTER UP. The key is to break the interaction down into stages and carefully consider the events that cause transitions between stages.
Title: Re: Playmaker UGui and PlaymakerGUI
Post by: PolyMad on March 09, 2019, 01:58:29 PM
Thank you very much, Alex!  :D
So am I going to delete all the stuff I downloaded about the Playmaker UGUI?
Will it cause conflicts etc.?
Title: Re: Playmaker UGui and PlaymakerGUI
Post by: Alex Chouls on March 09, 2019, 03:23:42 PM
The integrated support is designed to work side by side with the old add-on. So, for example, if you have an old project already using the add-on you can keep using it. But if you’re starting a new project I would start without it, to keep the project a little cleaner, and only add it if needed.
Title: Re: Playmaker UGui and PlaymakerGUI
Post by: PolyMad on March 09, 2019, 03:30:38 PM
OK thank you!