docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SliderFloat

    Slider UI element for floating point values.

    Inheritance
    object
    CallbackEventHandler
    Focusable
    VisualElement
    BaseVisualElement
    ExVisualElement
    BaseSlider<float, float>
    SliderBase<float>
    SliderFloat
    Implements
    IEventHandler
    ITransform
    ITransitionAnimations
    IExperimentalFeatures
    IVisualElementScheduler
    IResolvedStyle
    IContextOverrideElement
    IInputElement<float>
    IValidatableElement<float>
    INotifyValueChanging<float>
    INotifyValueChanged<float>
    Inherited Members
    SliderBase<float>.ussClassName
    SliderBase<float>.sizeUssClassName
    SliderBase<float>.tickLabelVariantUssClassName
    SliderBase<float>.noLabelUssClassName
    SliderBase<float>.tickUssClassName
    SliderBase<float>.inlineValueUssClassName
    SliderBase<float>.tickLabelUssClassName
    SliderBase<float>.ticksUssClassName
    SliderBase<float>.trackUssClassName
    SliderBase<float>.paddedContainerUssClassName
    SliderBase<float>.interactiveAreaUssClassName
    SliderBase<float>.progressUssClassName
    SliderBase<float>.handleUssClassName
    SliderBase<float>.handleContainerUssClassName
    SliderBase<float>.labelContainerUssClassName
    SliderBase<float>.labelUssClassName
    SliderBase<float>.valueLabelUssClassName
    SliderBase<float>.inlineValueLabelUssClassName
    SliderBase<float>.controlsUssClassName
    SliderBase<float>.controlContainerUssClassName
    SliderBase<float>.filled
    SliderBase<float>.inlineValue
    SliderBase<float>.fillOffset
    SliderBase<float>.label
    SliderBase<float>.tickCount
    SliderBase<float>.tickLabel
    SliderBase<float>.size
    SliderBase<float>.SetValueWithoutNotify(float)
    SliderBase<float>.GetSliderRect()
    SliderBase<float>.OnSliderRangeChanged()
    SliderBase<float>.Clamp(float, float, float)
    SliderBase<float>.GetSizeUssClassName(Size)
    SliderBase<float>.GetInlineValueUssClassName(InlineValue)
    BaseSlider<float, float>.m_DraggerManipulator
    BaseSlider<float, float>.m_HighValue
    BaseSlider<float, float>.m_LowValue
    BaseSlider<float, float>.m_PreviousValue
    BaseSlider<float, float>.m_Value
    BaseSlider<float, float>.m_CurrentDirection
    BaseSlider<float, float>.lowValue
    BaseSlider<float, float>.highValue
    BaseSlider<float, float>.formatString
    BaseSlider<float, float>.SetValueWithoutNotify(float)
    BaseSlider<float, float>.value
    BaseSlider<float, float>.invalid
    BaseSlider<float, float>.validateValue
    BaseSlider<float, float>.OnSliderRangeChanged()
    BaseSlider<float, float>.InvokeValueChangedCallbacks()
    BaseSlider<float, float>.OnGeometryChanged(GeometryChangedEvent)
    BaseSlider<float, float>.OnDirectionChanged(ContextChangedEvent<DirContext>)
    BaseSlider<float, float>.OnTrackUp(Draggable)
    BaseSlider<float, float>.OnTrackDown(Draggable)
    BaseSlider<float, float>.OnTrackDragged(Draggable)
    BaseSlider<float, float>.SetValueFromDrag(float)
    BaseSlider<float, float>.GetSliderRect()
    BaseSlider<float, float>.ComputeValueFromHandlePosition(float, float)
    BaseSlider<float, float>.OnTrackClicked()
    BaseSlider<float, float>.GetClampedValue(float)
    BaseSlider<float, float>.ClampValue()
    BaseSlider<float, float>.Clamp(float, float, float)
    BaseSlider<float, float>.ParseValueToString(float)
    BaseSlider<float, float>.ParseRawValueToString(float)
    BaseSlider<float, float>.ParseHandleValueToString(float)
    BaseSlider<float, float>.ParseStringToValue(string, out float)
    BaseSlider<float, float>.SliderLerpUnclamped(float, float, float)
    BaseSlider<float, float>.SliderNormalizeValue(float, float, float)
    BaseSlider<float, float>.Decrement(float)
    BaseSlider<float, 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 SliderFloat : SliderBase<float>, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement, IInputElement<float>, IValidatableElement<float>, INotifyValueChanging<float>, INotifyValueChanged<float>

    Constructors

    SliderFloat()

    Default constructor.

    Declaration
    public SliderFloat()

    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

    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<float, float>.Decrement(float)

    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<float, float>.Increment(float)

    ParseStringToValue(string, out float)

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

    ParseValueToString(float)

    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(float val)
    Parameters
    Type Name Description
    float val

    The TValueType value to convert.

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

    SliderLerpUnclamped(float, float, float)

    Declaration
    protected override float SliderLerpUnclamped(float a, float b, float interpolant)
    Parameters
    Type Name Description
    float a
    float b
    float interpolant
    Returns
    Type Description
    float
    Overrides
    BaseSlider<float, float>.SliderLerpUnclamped(float, float, float)

    SliderNormalizeValue(float, float, float)

    Declaration
    protected override float SliderNormalizeValue(float currentValue, float lowerValue, float higherValue)
    Parameters
    Type Name Description
    float currentValue
    float lowerValue
    float higherValue
    Returns
    Type Description
    float
    Overrides
    BaseSlider<float, 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)