TextStudio3DOptionPresentation
[ExecuteAlways][AddComponentMenu("Text Studio/Spatial UI/3D Option Presentation")][DisallowMultipleComponent]public sealed class TextStudio3DOptionPresentation : MonoBehaviourArranges authored option controls as a flat list, depth stack, rotary wheel, or radial menu.
Methods
Section titled “Methods”
RefreshOptions()
Section titled “RefreshOptions()”public void RefreshOptions()Rebuilds the ordered option controls from descendants when enabled, repairs selection, and reapplies presentation.
SetOptions(TextStudio3DControl[])
Section titled “SetOptions(TextStudio3DControl[])”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[] |
Select(int, bool)
Section titled “Select(int, bool)”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.
Select(int)
Section titled “Select(int)”public void Select(int index)Selects an option by index and publishes the new selection.
Parameters
| Name | Type |
|---|---|
index |
System.Int32 |
ResetSelection()
Section titled “ResetSelection()”public void ResetSelection()Clears the current option selection and refreshes every control’s selected visual.
SelectNext()
Section titled “SelectNext()”public void SelectNext()Selects the next active interactable option, wrapping when configured.
SelectPrevious()
Section titled “SelectPrevious()”public void SelectPrevious()Selects the preceding active interactable option, wrapping when configured.
Arrange()
Section titled “Arrange()”public void Arrange()Places option controls using the configured flat, depth-stack, rotary-wheel, or radial presentation.
Constructors
Section titled “Constructors”
TextStudio3DOptionPresentation()
Section titled “TextStudio3DOptionPresentation()”public TextStudio3DOptionPresentation()Properties
Section titled “Properties”
public TextStudio3DOptionPresentationMode Mode { get; set; }Returns
TextStudio.ThreeD.TextStudio3DOptionPresentationMode
SelectedIndex
Section titled “SelectedIndex”public int SelectedIndex { get; set; }Returns
System.Int32
UseChildControls
Section titled “UseChildControls”public bool UseChildControls { get; set; }Returns
System.Boolean
Spacing
Section titled “Spacing”public float Spacing { get; set; }Returns
System.Single
DepthStep
Section titled “DepthStep”public float DepthStep { get; set; }Returns
System.Single
DepthLateralStep
Section titled “DepthLateralStep”public float DepthLateralStep { get; set; }Returns
System.Single
DepthScaleStep
Section titled “DepthScaleStep”public float DepthScaleStep { get; set; }Returns
System.Single
Radius
Section titled “Radius”public float Radius { get; set; }Returns
System.Single
OnSelectionChanged
Section titled “OnSelectionChanged”public UnityEvent<int> OnSelectionChanged { get; }Returns
UnityEngine.Events.UnityEvent{System.Int32}