TextStudio3DList
[AddComponentMenu("Text Studio/Spatial UI/3D List")]public sealed class TextStudio3DList : TextStudio3DControlPresents an ordered option collection as selectable 3D text rows with disabled-item handling.
Methods
Section titled “Methods”
SetLabels(params string[])
Section titled “SetLabels(params string[])”public void SetLabels(params string[] labels)Replaces all list items with defensive option snapshots created from the supplied labels.
Parameters
| Name | Type |
|---|---|
labels |
System.String[] |
Select(int, bool)
Section titled “Select(int, bool)”public bool Select(int index, bool notify)Selects an interactable row by index, updates presentation, and optionally raises selection events.
Parameters
| Name | Type |
|---|---|
index |
System.Int32 |
notify |
System.Boolean |
Returns
System.Boolean: True when the selected index changed.
SelectNext()
Section titled “SelectNext()”public void SelectNext()Selects the next interactable row, respecting the configured wrap policy.
SelectPrevious()
Section titled “SelectPrevious()”public void SelectPrevious()Selects the preceding interactable row, respecting the configured wrap policy.
OnPointerPressed(TextStudio3DInteractionContext)
Section titled “OnPointerPressed(TextStudio3DInteractionContext)”protected override void OnPointerPressed(TextStudio3DInteractionContext context)Allows a subclass to initialize state for an accepted primary-button press.
Parameters
| Name | Type |
|---|---|
context |
TextStudio.ThreeD.TextStudio3DInteractionContext |
OnPointerDragged(TextStudio3DInteractionContext)
Section titled “OnPointerDragged(TextStudio3DInteractionContext)”protected override void OnPointerDragged(TextStudio3DInteractionContext context)Allows a subclass to update its value or transform from an accepted pointer drag.
Parameters
| Name | Type |
|---|---|
context |
TextStudio.ThreeD.TextStudio3DInteractionContext |
RefreshLabel()
Section titled “RefreshLabel()”protected override void RefreshLabel()Allows a subclass to derive its displayed label from current semantic state.
PerformActivation()
Section titled “PerformActivation()”protected override void PerformActivation()Applies the subclass’s semantic activation after common interactability checks.
Constructors
Section titled “Constructors”
TextStudio3DList()
Section titled “TextStudio3DList()”public TextStudio3DList()Properties
Section titled “Properties”
public TextStudio3DOption[] Items { get; set; }Returns
TextStudio.ThreeD.TextStudio3DOption[]
ItemCount
Section titled “ItemCount”public int ItemCount { get; }Returns
System.Int32
SelectedIndex
Section titled “SelectedIndex”public int SelectedIndex { get; set; }Returns
System.Int32
SelectedItem
Section titled “SelectedItem”public TextStudio3DOption SelectedItem { get; }Returns
TextStudio.ThreeD.TextStudio3DOption
SelectedOption
Section titled “SelectedOption”public string SelectedOption { get; }Returns
System.String
OnSelectionChanged
Section titled “OnSelectionChanged”public UnityEvent<int> OnSelectionChanged { get; }Returns
UnityEngine.Events.UnityEvent{System.Int32}
OnItemChanged
Section titled “OnItemChanged”public TextStudio3DOptionEvent OnItemChanged { get; }Returns
TextStudio.ThreeD.TextStudio3DOptionEvent
OnOptionChanged
Section titled “OnOptionChanged”public UnityEvent<string> OnOptionChanged { get; }Returns
UnityEngine.Events.UnityEvent{System.String}
ActivateOnPointerRelease
Section titled “ActivateOnPointerRelease”protected override bool ActivateOnPointerRelease { get; }Returns
System.Boolean