Skip to content

TextStudio3DMenuController

ClassTextStudio.ThreeDTextStudio.3D
public sealed class TextStudio3DMenuController : MonoBehaviour

Shows one spatial menu panel at a time and maintains bounded push/pop navigation history.

public void Show(GameObject panel)

Shows one managed panel without adding the previous panel to navigation history.

Parameters

Name Type
panel UnityEngine.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
public void Push(GameObject panel)

Shows a managed panel after adding the current panel to bounded navigation history.

Parameters

Name Type
panel UnityEngine.GameObject
public bool Back()

Returns to the most recent valid panel in navigation history.

Returns

System.Boolean: True when a previous panel was restored.

public void Close()

Hides the current panel and returns through history when possible.

public void CloseAll()

Clears navigation history and hides every managed panel.

public TextStudio3DMenuController()

public GameObject Current { get; }

Returns

UnityEngine.GameObject

public bool CanGoBack { get; }

Returns

System.Boolean

public UnityEvent<GameObject> OnPanelChanged { get; }

Returns

UnityEngine.Events.UnityEvent{UnityEngine.GameObject}

public GameObject StartingPanel { get; set; }

Returns

UnityEngine.GameObject

public bool ShowStartingPanelOnEnable { get; set; }

Returns

System.Boolean