Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: SammyJoeUK on April 08, 2015, 10:06:12 AM
-
Hi Guys and Girls,
Probably a really basic one but I'm stumped. I'd like to know how I can move a set of buttons with the camera in Unity Playmaker.
I have the GUI button on the intial state when the game starts but when I click a button at the side I want the camera to move and the GUI to move with it.
I've got the camera movement down - but the GUI disappears as soon as I click the button - is there a way to keep the button on screen without having to copy the GUI Button action into every state to keep it on screen?
Tried to explain it as best I can - any more info - please ask
Thanks in advance
Sammy
-
Are you using GUI or UI?
GUI is only rendered in the state that the actions exist in, so as soon as you leave that state then those GUI items will cease to be rendered.
Typically with legacy GUI you would make a separate FSM (or several) that would display relevant GUI and you would fire events to that FSM to change what GUI is displayed.
I would recommend using the new UI, its much better.
-
Hi
Thanks for the super quick response -
Are there any actions for UI as opposed to GUI?
-
Yes, they are here:
https://hutonggames.fogbugz.com/default.asp?W1192