TextStudio3DOption
public sealed class TextStudio3DOptionStores a stable ID, label, presentation assets, interactability, and application metadata for one selectable item.
Constructors
Section titled “Constructors”
TextStudio3DOption()
Section titled “TextStudio3DOption()”public TextStudio3DOption()
TextStudio3DOption(string, string, bool)
Section titled “TextStudio3DOption(string, string, bool)”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 |
Methods
Section titled “Methods”
Clone()
Section titled “Clone()”public TextStudio3DOption Clone()Creates a detached option snapshot while retaining references to optional icon and presentation assets.
Returns
TextStudio.ThreeD.TextStudio3DOption
FromLabels(params string[])
Section titled “FromLabels(params string[])”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[]
Properties
Section titled “Properties”
public string Id { get; set; }Returns
System.String
public string Label { get; set; }Returns
System.String
public Object Icon { get; set; }Returns
UnityEngine.Object
PresentationPrefab
Section titled “PresentationPrefab”public GameObject PresentationPrefab { get; set; }Returns
UnityEngine.GameObject
Interactable
Section titled “Interactable”public bool Interactable { get; set; }Returns
System.Boolean
Metadata
Section titled “Metadata”public string Metadata { get; set; }Returns
System.String