Skip to content

TextStudio3DOption

ClassTextStudio.ThreeDTextStudio.3D
public sealed class TextStudio3DOption

Stores a stable ID, label, presentation assets, interactability, and application metadata for one selectable item.

public TextStudio3DOption()

public TextStudio3DOption(string id, string label, bool interactable = true)

Creates a selectable item whose empty ID falls back to its label.

Parameters

Name Type
id System.String
label System.String
interactable System.Boolean

public TextStudio3DOption Clone()

Creates a detached option snapshot while retaining references to optional icon and presentation assets.

Returns

TextStudio.ThreeD.TextStudio3DOption

public static TextStudio3DOption[] FromLabels(params string[] labels)

Creates options whose stable IDs are derived from their labels and made unique within the returned array.

Parameters

Name Type
labels System.String[]

Returns

TextStudio.ThreeD.TextStudio3DOption[]

public string Id { get; set; }

Returns

System.String

public string Label { get; set; }

Returns

System.String

public Object Icon { get; set; }

Returns

UnityEngine.Object

public GameObject PresentationPrefab { get; set; }

Returns

UnityEngine.GameObject

public bool Interactable { get; set; }

Returns

System.Boolean

public string Metadata { get; set; }

Returns

System.String