Toggle layer visibility with GUI

I have c# experience but i’m unfamiliar with the Unity API. Can someone give me a starting point for controlling layer visibility with the GUI. Thanks.

I actually want to control game elements that are on spicific layers from the GUI.

Unity doesn’t have a formal system of GUI layers.

Code GUIs: a=GUI.HorizSlider(a, ...); aren’t persistant. You build&draw or not each frame. So, usually use a bool to control when you draw: if(showNavGuide) { GUI.DrawTexture(...); }

For grouping persistant elements (the gameObjects GUIText and GUITexture) can create a “layer” by childing to an empty and using SetActiveRecursively to turn them on/off.