Skip to content

TextStudio3DToggle

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

Provides a two-state spatial control with separate labels and a value-changed event.

public void SetIsOn(bool value, bool notify)

Changes the toggle value, refreshes selected visuals and label text, and optionally raises the value event.

Parameters

Name Type
value System.Boolean
notify System.Boolean
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 TextStudio3DToggle()

public bool IsOn { get; set; }

Returns

System.Boolean

public string OffLabel { get; set; }

Returns

System.String

public string OnLabel { get; set; }

Returns

System.String

public UnityEvent<bool> OnValueChanged { get; }

Returns

UnityEngine.Events.UnityEvent{System.Boolean}