Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: michela on November 28, 2011, 05:03:40 PM

Title: Set Visibility of GUI elements created by actions
Post by: michela 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
Title: Re: Set Visibility of GUI elements created by actions
Post by: Alex Chouls 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.