Skip to content

TextStudio3DOptionPresentation

ClassTextStudio.ThreeDTextStudio.3D
[ExecuteAlways]
[AddComponentMenu("Text Studio/Spatial UI/3D Option Presentation")]
[DisallowMultipleComponent]
public sealed class TextStudio3DOptionPresentation : MonoBehaviour

Arranges authored option controls as a flat list, depth stack, rotary wheel, or radial menu.

public void RefreshOptions()

Rebuilds the ordered option controls from descendants when enabled, repairs selection, and reapplies presentation.

public void SetOptions(TextStudio3DControl[] options)

Switches to an explicit defensive copy of option controls and reapplies selection and presentation.

Parameters

Name Type
options TextStudio.ThreeD.TextStudio3DControl[]
public bool Select(int index, bool notify)

Selects an active interactable option by index and optionally publishes the new selection.

Parameters

Name Type
index System.Int32
notify System.Boolean

Returns

System.Boolean: True when the requested option now owns selection.

public void Select(int index)

Selects an option by index and publishes the new selection.

Parameters

Name Type
index System.Int32
public void ResetSelection()

Clears the current option selection and refreshes every control’s selected visual.

public void SelectNext()

Selects the next active interactable option, wrapping when configured.

public void SelectPrevious()

Selects the preceding active interactable option, wrapping when configured.

public void Arrange()

Places option controls using the configured flat, depth-stack, rotary-wheel, or radial presentation.

public TextStudio3DOptionPresentation()

public TextStudio3DOptionPresentationMode Mode { get; set; }

Returns

TextStudio.ThreeD.TextStudio3DOptionPresentationMode

public int SelectedIndex { get; set; }

Returns

System.Int32

public bool UseChildControls { get; set; }

Returns

System.Boolean

public float Spacing { get; set; }

Returns

System.Single

public float DepthStep { get; set; }

Returns

System.Single

public float DepthLateralStep { get; set; }

Returns

System.Single

public float DepthScaleStep { get; set; }

Returns

System.Single

public float Radius { get; set; }

Returns

System.Single

public UnityEvent<int> OnSelectionChanged { get; }

Returns

UnityEngine.Events.UnityEvent{System.Int32}