docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RangeSliderFloat

    Range Slider UI element for floating point values.

    Inheritance
    object
    CallbackEventHandler
    Focusable
    VisualElement
    BaseVisualElement
    ExVisualElement
    BaseSlider<Vector2, float>
    RangeSliderBase<Vector2, float>
    RangeSliderFloat
    Implements
    IEventHandler
    ITransform
    ITransitionAnimations
    IExperimentalFeatures
    IVisualElementScheduler
    IResolvedStyle
    IContextOverrideElement
    IInputElement<Vector2>
    IValidatableElement<Vector2>
    INotifyValueChanging<Vector2>
    INotifyValueChanged<Vector2>
    Inherited Members
    RangeSliderBase<Vector2, float>.ussClassName
    RangeSliderBase<Vector2, float>.sizeUssClassName
    RangeSliderBase<Vector2, float>.tickLabelVariantUssClassName
    RangeSliderBase<Vector2, float>.noLabelUssClassName
    RangeSliderBase<Vector2, float>.tickUssClassName
    RangeSliderBase<Vector2, float>.inlineValueUssClassName
    RangeSliderBase<Vector2, float>.tickLabelUssClassName
    RangeSliderBase<Vector2, float>.ticksUssClassName
    RangeSliderBase<Vector2, float>.trackUssClassName
    RangeSliderBase<Vector2, float>.paddedContainerUssClassName
    RangeSliderBase<Vector2, float>.progressContainerUssClassName
    RangeSliderBase<Vector2, float>.progressUssClassName
    RangeSliderBase<Vector2, float>.handleUssClassName
    RangeSliderBase<Vector2, float>.handleContainerUssClassName
    RangeSliderBase<Vector2, float>.labelContainerUssClassName
    RangeSliderBase<Vector2, float>.labelUssClassName
    RangeSliderBase<Vector2, float>.valueLabelUssClassName
    RangeSliderBase<Vector2, float>.inlineValueLabelUssClassName
    RangeSliderBase<Vector2, float>.controlsUssClassName
    RangeSliderBase<Vector2, float>.controlContainerUssClassName
    RangeSliderBase<Vector2, float>.filled
    RangeSliderBase<Vector2, float>.inlineValue
    RangeSliderBase<Vector2, float>.label
    RangeSliderBase<Vector2, float>.tickCount
    RangeSliderBase<Vector2, float>.tickLabel
    RangeSliderBase<Vector2, float>.size
    RangeSliderBase<Vector2, float>.minValue
    RangeSliderBase<Vector2, float>.maxValue
    RangeSliderBase<Vector2, float>.MakeRangeValue(float, float)
    RangeSliderBase<Vector2, float>.GetMinValue(Vector2)
    RangeSliderBase<Vector2, float>.GetMaxValue(Vector2)
    RangeSliderBase<Vector2, float>.GetClampedValue(float, float, float)
    RangeSliderBase<Vector2, float>.LerpUnclamped(float, float, float)
    RangeSliderBase<Vector2, float>.ClosestHandleIndex(float)
    RangeSliderBase<Vector2, float>.SetValueWithoutNotify(Vector2)
    RangeSliderBase<Vector2, float>.GetSliderRect()
    RangeSliderBase<Vector2, float>.OnSliderRangeChanged()
    RangeSliderBase<Vector2, float>.Clamp(Vector2, float, float)
    RangeSliderBase<Vector2, float>.ComputeValueFromHandlePosition(float, float)
    RangeSliderBase<Vector2, float>.GetInlineValueUssClassName(InlineValue)
    RangeSliderBase<Vector2, float>.GetSizeUssClassName(Size)
    BaseSlider<Vector2, float>.m_DraggerManipulator
    BaseSlider<Vector2, float>.m_HighValue
    BaseSlider<Vector2, float>.m_LowValue
    BaseSlider<Vector2, float>.m_PreviousValue
    BaseSlider<Vector2, float>.m_Value
    BaseSlider<Vector2, float>.m_CurrentDirection
    BaseSlider<Vector2, float>.lowValue
    BaseSlider<Vector2, float>.highValue
    BaseSlider<Vector2, float>.formatString
    BaseSlider<Vector2, float>.value
    BaseSlider<Vector2, float>.invalid
    BaseSlider<Vector2, float>.validateValue
    BaseSlider<Vector2, float>.InvokeValueChangedCallbacks()
    BaseSlider<Vector2, float>.OnGeometryChanged(GeometryChangedEvent)
    BaseSlider<Vector2, float>.OnDirectionChanged(ContextChangedEvent<DirContext>)
    BaseSlider<Vector2, float>.OnTrackUp(Draggable)
    BaseSlider<Vector2, float>.OnTrackDown(Draggable)
    BaseSlider<Vector2, float>.OnTrackDragged(Draggable)
    BaseSlider<Vector2, float>.SetValueFromDrag(float)
    BaseSlider<Vector2, float>.OnTrackClicked()
    BaseSlider<Vector2, float>.GetClampedValue(Vector2)
    BaseSlider<Vector2, float>.ClampValue()
    BaseSlider<Vector2, float>.ParseValueToString(Vector2)
    BaseSlider<Vector2, float>.ParseRawValueToString(Vector2)
    BaseSlider<Vector2, float>.ParseHandleValueToString(float)
    BaseSlider<Vector2, float>.ParseStringToValue(string, out Vector2)
    BaseSlider<Vector2, float>.SliderLerpUnclamped(float, float, float)
    BaseSlider<Vector2, float>.SliderNormalizeValue(float, float, float)
    BaseSlider<Vector2, float>.Decrement(float)
    BaseSlider<Vector2, float>.Increment(float)
    ExVisualElement.contentContainer
    ExVisualElement.outlineColor
    ExVisualElement.backgroundColor
    ExVisualElement.passMask
    BaseVisualElement.contextPrefix
    BaseVisualElement.scaleOverride
    BaseVisualElement.themeOverride
    BaseVisualElement.langOverride
    BaseVisualElement.layoutDirectionOverride
    BaseVisualElement.preferredTooltipPlacementOverride
    BaseVisualElement.tooltipDelayMsOverride
    BaseVisualElement.GetLayoutDirectionUssClassName(Dir)
    VisualElement.disabledUssClassName
    VisualElement.ExecuteDefaultAction(EventBase)
    VisualElement.Focus()
    VisualElement.SendEvent(EventBase)
    VisualElement.SetEnabledFromHierarchy(bool)
    VisualElement.SetEnabled(bool)
    VisualElement.MarkDirtyRepaint()
    VisualElement.ContainsPoint(Vector2)
    VisualElement.Overlaps(Rect)
    VisualElement.DoMeasure(float, VisualElement.MeasureMode, float, VisualElement.MeasureMode)
    VisualElement.ToString()
    VisualElement.GetClasses()
    VisualElement.ClearClassList()
    VisualElement.AddToClassList(string)
    VisualElement.RemoveFromClassList(string)
    VisualElement.ToggleInClassList(string)
    VisualElement.EnableInClassList(string, bool)
    VisualElement.ClassListContains(string)
    VisualElement.FindAncestorUserData()
    VisualElement.Add(VisualElement)
    VisualElement.Insert(int, VisualElement)
    VisualElement.Remove(VisualElement)
    VisualElement.RemoveAt(int)
    VisualElement.Clear()
    VisualElement.ElementAt(int)
    VisualElement.IndexOf(VisualElement)
    VisualElement.Children()
    VisualElement.Sort(Comparison<VisualElement>)
    VisualElement.BringToFront()
    VisualElement.SendToBack()
    VisualElement.PlaceBehind(VisualElement)
    VisualElement.PlaceInFront(VisualElement)
    VisualElement.RemoveFromHierarchy()
    VisualElement.GetFirstOfType<T>()
    VisualElement.GetFirstAncestorOfType<T>()
    VisualElement.Contains(VisualElement)
    VisualElement.FindCommonAncestor(VisualElement)
    VisualElement.viewDataKey
    VisualElement.userData
    VisualElement.canGrabFocus
    VisualElement.focusController
    VisualElement.usageHints
    VisualElement.transform
    VisualElement.layout
    VisualElement.contentRect
    VisualElement.paddingRect
    VisualElement.worldBound
    VisualElement.localBound
    VisualElement.worldTransform
    VisualElement.pickingMode
    VisualElement.name
    VisualElement.enabledInHierarchy
    VisualElement.enabledSelf
    VisualElement.visible
    VisualElement.generateVisualContent
    VisualElement.experimental
    VisualElement.hierarchy
    VisualElement.cacheAsBitmap
    VisualElement.parent
    VisualElement.panel
    VisualElement.visualTreeAssetSource
    VisualElement.this[int]
    VisualElement.childCount
    VisualElement.schedule
    VisualElement.style
    VisualElement.customStyle
    VisualElement.styleSheets
    VisualElement.tooltip
    VisualElement.resolvedStyle
    Focusable.Blur()
    Focusable.focusable
    Focusable.tabIndex
    Focusable.delegatesFocus
    CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
    CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
    CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
    CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TrickleDown)
    CallbackEventHandler.HandleEvent(EventBase)
    CallbackEventHandler.HasTrickleDownHandlers()
    CallbackEventHandler.HasBubbleUpHandlers()
    CallbackEventHandler.ExecuteDefaultActionAtTarget(EventBase)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Unity.AppUI.UI
    Assembly: Unity.AppUI.dll
    Syntax
    public class RangeSliderFloat : RangeSliderBase<Vector2, float>, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement, IInputElement<Vector2>, IValidatableElement<Vector2>, INotifyValueChanging<Vector2>, INotifyValueChanged<Vector2>

    Constructors

    RangeSliderFloat()

    Default constructor.

    Declaration
    public RangeSliderFloat()

    Properties

    incrementFactor

    The increment factor used when the slider is interacted with using the keyboard.

    Declaration
    public float incrementFactor { get; set; }
    Property Value
    Type Description
    float

    maxValue

    The value of the right handle.

    Declaration
    public override float maxValue { get; set; }
    Property Value
    Type Description
    float
    Overrides
    RangeSliderBase<Vector2, float>.maxValue
    Remarks

    This is not the same as the highValue which is the maximum value of the slider.

    minValue

    The value of the left handle.

    Declaration
    public override float minValue { get; set; }
    Property Value
    Type Description
    float
    Overrides
    RangeSliderBase<Vector2, float>.minValue
    Remarks

    This is not the same as the lowValue which is the minimum value of the slider.

    Methods

    Decrement(float)

    Method to implement which returns the decrement of a given value.

    Declaration
    protected override float Decrement(float val)
    Parameters
    Type Name Description
    float val

    The value to decrement.

    Returns
    Type Description
    float

    The decremented value.

    Overrides
    BaseSlider<Vector2, float>.Decrement(float)

    GetClampedValue(float, float, float)

    Get the clamped value.

    Declaration
    protected override float GetClampedValue(float value, float lowerValue, float higherValue)
    Parameters
    Type Name Description
    float value

    The value to clamp.

    float lowerValue

    The lower bound.

    float higherValue

    The higher bound.

    Returns
    Type Description
    float

    The clamped value.

    Overrides
    RangeSliderBase<Vector2, float>.GetClampedValue(float, float, float)

    GetMaxValue(Vector2)

    Get the maximum value from the range value.

    Declaration
    protected override float GetMaxValue(Vector2 rangeValue)
    Parameters
    Type Name Description
    Vector2 rangeValue

    The range value.

    Returns
    Type Description
    float

    The maximum value of the range.

    Overrides
    RangeSliderBase<Vector2, float>.GetMaxValue(Vector2)

    GetMinValue(Vector2)

    Get the minimum value from the range value.

    Declaration
    protected override float GetMinValue(Vector2 rangeValue)
    Parameters
    Type Name Description
    Vector2 rangeValue

    The range value.

    Returns
    Type Description
    float

    The minimum value of the range.

    Overrides
    RangeSliderBase<Vector2, float>.GetMinValue(Vector2)

    Increment(float)

    Method to implement which returns the increment of a given value.

    Declaration
    protected override float Increment(float val)
    Parameters
    Type Name Description
    float val

    The value to increment.

    Returns
    Type Description
    float

    The incremented value.

    Overrides
    BaseSlider<Vector2, float>.Increment(float)

    LerpUnclamped(float, float, float)

    Lerp between two values.

    Declaration
    protected override float LerpUnclamped(float a, float b, float interpolant)
    Parameters
    Type Name Description
    float a

    The first value.

    float b

    The second value.

    float interpolant

    The interpolant.

    Returns
    Type Description
    float

    The lerped value.

    Overrides
    RangeSliderBase<Vector2, float>.LerpUnclamped(float, float, float)

    MakeRangeValue(float, float)

    Create a range value from the min and max values.

    Declaration
    protected override Vector2 MakeRangeValue(float minValue, float maxValue)
    Parameters
    Type Name Description
    float minValue

    The minimum value of the range.

    float maxValue

    The maximum value of the range.

    Returns
    Type Description
    Vector2

    A new range object of type TRangeType.

    Overrides
    RangeSliderBase<Vector2, float>.MakeRangeValue(float, float)

    ParseStringToValue(string, out Vector2)

    Declaration
    protected override bool ParseStringToValue(string strValue, out Vector2 val)
    Parameters
    Type Name Description
    string strValue
    Vector2 val
    Returns
    Type Description
    bool
    Overrides
    BaseSlider<Vector2, float>.ParseStringToValue(string, out Vector2)

    ParseValueToString(Vector2)

    Method to implement to resolve a TValueType value into a string value.

    You can use ToString() for floating point value types for example.

    You can also round the value if you want a specific number of decimals.

    Declaration
    protected override string ParseValueToString(Vector2 val)
    Parameters
    Type Name Description
    Vector2 val

    The TValueType value to convert.

    Returns
    Type Description
    string
    Overrides
    BaseSlider<Vector2, float>.ParseValueToString(Vector2)

    SliderLerpUnclamped(float, float, float)

    Method to implement which returns a value based on the linear interpolation of a given interpolant between a specific range.

    Usually you can use directly LerpUnclamped(float, float, float) for floating point value types.

    Declaration
    protected override Vector2 SliderLerpUnclamped(float a, float b, float interpolant)
    Parameters
    Type Name Description
    float a

    The lowest value in the range.

    float b

    The highest value in the range.

    float interpolant

    The normalized value to process.

    Returns
    Type Description
    Vector2
    Overrides
    BaseSlider<Vector2, float>.SliderLerpUnclamped(float, float, float)

    SliderNormalizeValue(float, float, float)

    Method to implement which returns the normalized value of a given value in a specific range.

    Usually you can use directly an InverseLerp(float, float, float) for floating point value types.

    Declaration
    protected override float SliderNormalizeValue(float currentValue, float lowerValue, float higherValue)
    Parameters
    Type Name Description
    float currentValue

    The value to normalize.

    float lowerValue

    The lowest value in the range.

    float higherValue

    The highest value in the range.

    Returns
    Type Description
    float
    Overrides
    BaseSlider<Vector2, float>.SliderNormalizeValue(float, float, float)

    Implements

    IEventHandler
    ITransform
    ITransitionAnimations
    IExperimentalFeatures
    IVisualElementScheduler
    IResolvedStyle
    IContextOverrideElement
    IInputElement<TValueType>
    IValidatableElement<TValueType>
    INotifyValueChanging<TValueType>
    INotifyValueChanged<T>

    Extension Methods

    NotifyValueChangingExtensions.RegisterValueChangingCallback<TValueType>(INotifyValueChanging<TValueType>, EventCallback<ChangingEvent<TValueType>>)
    NotifyValueChangingExtensions.UnregisterValueChangingCallback<TValueType>(INotifyValueChanging<TValueType>, EventCallback<ChangingEvent<TValueType>>)
    VisualElementExtensions.FindNavController(VisualElement)
    VisualElementExtensions.GetChildren<T>(VisualElement, bool)
    VisualElementExtensions.GetContextProvider<T>(VisualElement)
    VisualElementExtensions.GetContext<T>(VisualElement)
    VisualElementExtensions.GetPreferredTooltipPlacement(VisualElement)
    VisualElementExtensions.GetSelfContext<T>(VisualElement)
    VisualElementExtensions.GetTooltipTemplate(VisualElement)
    VisualElementExtensions.IsContextProvider<T>(VisualElement)
    VisualElementExtensions.ProvideContext<T>(VisualElement, T)
    VisualElementExtensions.RegisterContextChangedCallback<T>(VisualElement, EventCallback<ContextChangedEvent<T>>)
    VisualElementExtensions.SetPreferredTooltipPlacement(VisualElement, OptionalEnum<PopoverPlacement>)
    VisualElementExtensions.SetTooltipTemplate(VisualElement, VisualElement)
    VisualElementExtensions.UnregisterContextChangedCallback<T>(VisualElement, EventCallback<ContextChangedEvent<T>>)
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)