void altTopFunction() { GUI.backgroundColor = Color.green; GUILayout.BeginVertical("box"); GUILayout.Label("Alternate Top Bar"); GUILayout.FlexibleSpace(); if (GUILayout.Button("Fade Switch")) { topBar.resetRect(); GUIArea.fadeOutIn(0.25f, ref altTop, ref topBar); } GUILayout.FlexibleSpace(); if (GUILayout.Button("Slide Up Switch")) { topBar.setAlpha(1f); GUIArea.slideUpOutIn(0.25f, ref altTop, ref topBar); } GUILayout.FlexibleSpace(); if (GUILayout.Button("Slide Up Rotate")) { topBar.setAlpha(1f); GUIArea.slideTopBottom(0.25f, ref altTop, ref topBar); } GUILayout.FlexibleSpace(); GUILayout.EndVertical(); GUI.backgroundColor = Color.white; }