Please explain with some example, it will great help for me.
Thanks in advance.
public class Example : MonoBehaviour { public bool showHiddenButton = false; void OnGUI() { // Hidden button if (showHiddenButton) { if (GUI.Button(new Rect(10, 10, 50, 50), "Hidden Button")) { // Do Hidden Button stuff } } if (GUI.Button(new Rect(10, 70, 50, 30), "Other Button")) { showHiddenButton = true; } } }