TextStudio3DSlider
[AddComponentMenu("Text Studio/Spatial UI/3D Slider")]public sealed class TextStudio3DSlider : TextStudio3DControlMaps pointer movement or programmatic activation onto a bounded numeric range and optional 3D thumb.
Methods
Section titled “Methods”
SetValue(float, bool)
Section titled “SetValue(float, bool)”public bool SetValue(float value, bool notify)Clamps and optionally rounds the slider value, updates label and thumb presentation, and optionally raises its event.
Parameters
| Name | Type |
|---|---|
value |
System.Single |
notify |
System.Boolean |
Returns
System.Boolean: True when the retained value changed.
SetNormalizedValue(float)
Section titled “SetNormalizedValue(float)”public void SetNormalizedValue(float normalizedValue)Maps a normalized position onto the configured numeric range and publishes the change.
Parameters
| Name | Type |
|---|---|
normalizedValue |
System.Single |
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”
TextStudio3DSlider()
Section titled “TextStudio3DSlider()”public TextStudio3DSlider()Properties
Section titled “Properties”
Minimum
Section titled “Minimum”public float Minimum { get; set; }Returns
System.Single
Maximum
Section titled “Maximum”public float Maximum { get; set; }Returns
System.Single
public float Value { get; set; }Returns
System.Single
NormalizedValue
Section titled “NormalizedValue”public float NormalizedValue { get; }Returns
System.Single
WholeNumbers
Section titled “WholeNumbers”public bool WholeNumbers { get; set; }Returns
System.Boolean
OnValueChanged
Section titled “OnValueChanged”public UnityEvent<float> OnValueChanged { get; }Returns
UnityEngine.Events.UnityEvent{System.Single}
ActivateOnPointerRelease
Section titled “ActivateOnPointerRelease”protected override bool ActivateOnPointerRelease { get; }Returns
System.Boolean