playMaker

Author Topic: Set Visibility of GUI elements created by actions  (Read 2552 times)

michela

  • Playmaker Newbie
  • *
  • Posts: 4
Set Visibility of GUI elements created by actions
« on: November 28, 2011, 05:03:40 PM »
Hi

I've got a State using Draw Texture and GUI Label. What is the recommended way to hide GUI elements? I don't want to deactivate the game object itself which would lose my state info, going back to Start State.

I've tried using Set Visibility but this doesn't appear to be designed for GUI control - given the error "Game Object requires Renderer Component"

Any suggestions?

Michela

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3999
  • Official Playmaker Support
    • LinkedIn
Re: Set Visibility of GUI elements created by actions
« Reply #1 on: November 30, 2011, 04:11:08 PM »
Create a new state (e.g. GUI Off) that doesn't have those actions, then transition to this state when you want to turn those GUI elements off.

If you want to turn the whole GUI on/off, take a look at the Enable GUI action.