playMaker

Author Topic: Moving GUI Buttons with Camera Movement  (Read 2463 times)

SammyJoeUK

  • Playmaker Newbie
  • *
  • Posts: 32
Moving GUI Buttons with Camera Movement
« 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

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Moving GUI Buttons with Camera Movement
« Reply #1 on: April 08, 2015, 10:23:29 AM »
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.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

SammyJoeUK

  • Playmaker Newbie
  • *
  • Posts: 32
Re: Moving GUI Buttons with Camera Movement
« Reply #2 on: April 08, 2015, 10:33:17 AM »
Hi

Thanks for the super quick response -

Are there any actions for UI as opposed to GUI?

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Moving GUI Buttons with Camera Movement
« Reply #3 on: April 08, 2015, 10:53:10 AM »
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D