Skip to content

TextStudio3DList

ClassTextStudio.ThreeDTextStudio.3D
[AddComponentMenu("Text Studio/Spatial UI/3D List")]
public sealed class TextStudio3DList : TextStudio3DControl

Presents an ordered option collection as selectable 3D text rows with disabled-item handling.

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[]
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.

public void SelectNext()

Selects the next interactable row, respecting the configured wrap policy.

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
protected override void RefreshLabel()

Allows a subclass to derive its displayed label from current semantic state.

protected override void PerformActivation()

Applies the subclass’s semantic activation after common interactability checks.

public TextStudio3DList()

public TextStudio3DOption[] Items { get; set; }

Returns

TextStudio.ThreeD.TextStudio3DOption[]

public int ItemCount { get; }

Returns

System.Int32

public int SelectedIndex { get; set; }

Returns

System.Int32

public TextStudio3DOption SelectedItem { get; }

Returns

TextStudio.ThreeD.TextStudio3DOption

public string SelectedOption { get; }

Returns

System.String

public UnityEvent<int> OnSelectionChanged { get; }

Returns

UnityEngine.Events.UnityEvent{System.Int32}

public TextStudio3DOptionEvent OnItemChanged { get; }

Returns

TextStudio.ThreeD.TextStudio3DOptionEvent

public UnityEvent<string> OnOptionChanged { get; }

Returns

UnityEngine.Events.UnityEvent{System.String}

protected override bool ActivateOnPointerRelease { get; }

Returns

System.Boolean