Skip to content

TextStudio3DNavigationGroup

ClassTextStudio.ThreeDTextStudio.3D
[ExecuteAlways]
[AddComponentMenu("Text Studio/Spatial UI/3D Navigation Group")]
[DisallowMultipleComponent]
public sealed class TextStudio3DNavigationGroup : MonoBehaviour

Owns focus navigation across spatial controls using explicit links, order, or position-based scoring.

public void RefreshControls()

Rebuilds the navigation order from descendants when enabled and repairs or initializes focus.

public void SetControls(TextStudio3DControl[] controls)

Switches to an explicit defensive copy of controls and repairs the selected focus target.

Parameters

Name Type
controls TextStudio.ThreeD.TextStudio3DControl[]
public bool Select(TextStudio3DControl control)

Selects a configured, active, interactable control by reference.

Parameters

Name Type
control TextStudio.ThreeD.TextStudio3DControl

Returns

System.Boolean: True when the requested control now owns navigation focus.

public bool Select(int index)

Selects a configured, active, interactable control by zero-based navigation index.

Parameters

Name Type
index System.Int32

Returns

System.Boolean: True when the requested index now owns navigation focus.

public bool SelectFirst()

Selects the first active interactable control in navigation order.

Returns

System.Boolean

public bool Move(TextStudio3DNavigationDirection direction)

Moves focus through an explicit link, spatial scoring, or ordered next/previous navigation.

Parameters

Name Type
direction TextStudio.ThreeD.TextStudio3DNavigationDirection

Returns

System.Boolean: True when a destination accepted focus.

public bool MoveNext()

Moves focus to the next interactable control, optionally wrapping at the end.

Returns

System.Boolean

public bool MovePrevious()

Moves focus to the preceding interactable control, optionally wrapping at the beginning.

Returns

System.Boolean

public bool Submit()

Programmatically activates the selected interactable control with navigation interaction identity.

Returns

System.Boolean: True when a selected control was activated.

public void Cancel()

Raises the navigation cancel event without changing the selected control.

public void ClearSelection(bool notify)

Clears navigation focus and optionally publishes a null selection.

Parameters

Name Type
notify System.Boolean

public TextStudio3DNavigationGroup()

public int SelectedIndex { get; }

Returns

System.Int32

public TextStudio3DControl SelectedControl { get; }

Returns

TextStudio.ThreeD.TextStudio3DControl

public bool UseChildControls { get; set; }

Returns

System.Boolean

public bool SpatialNavigation { get; set; }

Returns

System.Boolean

public bool Wrap { get; set; }

Returns

System.Boolean

public bool UseLegacyKeyboard { get; set; }

Returns

System.Boolean

public UnityEvent<TextStudio3DControl> OnSelectionChanged { get; }

Returns

UnityEngine.Events.UnityEvent{TextStudio.ThreeD.TextStudio3DControl}

public UnityEvent<TextStudio3DControl> OnSubmitted { get; }

Returns

UnityEngine.Events.UnityEvent{TextStudio.ThreeD.TextStudio3DControl}

public UnityEvent OnCancelled { get; }

Returns

UnityEngine.Events.UnityEvent