TextStudio3DMenuController
public sealed class TextStudio3DMenuController : MonoBehaviourShows one spatial menu panel at a time and maintains bounded push/pop navigation history.
Methods
Section titled “Methods”
Show(GameObject)
Section titled “Show(GameObject)”public void Show(GameObject panel)Shows one managed panel without adding the previous panel to navigation history.
Parameters
| Name | Type |
|---|---|
panel |
UnityEngine.GameObject |
SetPanels(GameObject[], GameObject)
Section titled “SetPanels(GameObject[], GameObject)”public void SetPanels(GameObject[] panels, GameObject startingPanel)Replaces the managed panel set with a defensive copy and optionally establishes a new starting panel.
Parameters
| Name | Type |
|---|---|
panels |
UnityEngine.GameObject[] |
startingPanel |
UnityEngine.GameObject |
Push(GameObject)
Section titled “Push(GameObject)”public void Push(GameObject panel)Shows a managed panel after adding the current panel to bounded navigation history.
Parameters
| Name | Type |
|---|---|
panel |
UnityEngine.GameObject |
Back()
Section titled “Back()”public bool Back()Returns to the most recent valid panel in navigation history.
Returns
System.Boolean: True when a previous panel was restored.
Close()
Section titled “Close()”public void Close()Hides the current panel and returns through history when possible.
CloseAll()
Section titled “CloseAll()”public void CloseAll()Clears navigation history and hides every managed panel.
Constructors
Section titled “Constructors”
TextStudio3DMenuController()
Section titled “TextStudio3DMenuController()”public TextStudio3DMenuController()Properties
Section titled “Properties”
Current
Section titled “Current”public GameObject Current { get; }Returns
UnityEngine.GameObject
CanGoBack
Section titled “CanGoBack”public bool CanGoBack { get; }Returns
System.Boolean
OnPanelChanged
Section titled “OnPanelChanged”public UnityEvent<GameObject> OnPanelChanged { get; }Returns
UnityEngine.Events.UnityEvent{UnityEngine.GameObject}
StartingPanel
Section titled “StartingPanel”public GameObject StartingPanel { get; set; }Returns
UnityEngine.GameObject
ShowStartingPanelOnEnable
Section titled “ShowStartingPanelOnEnable”public bool ShowStartingPanelOnEnable { get; set; }Returns
System.Boolean