docs.unity3d.com
    Show / Hide Table of Contents

    Class RangeSliderBase<TRangeType, TValueType>

    Base class for Sliders (RangeSliderFloat, RangeSliderInt).

    Inheritance
    Object
    CallbackEventHandler
    Focusable
    VisualElement
    ExVisualElement
    BaseSlider<TRangeType, TValueType>
    RangeSliderBase<TRangeType, TValueType>
    RangeSliderFloat
    RangeSliderInt
    Inherited Members
    BaseSlider<TRangeType, TValueType>.m_DraggerManipulator
    BaseSlider<TRangeType, TValueType>.m_HighValue
    BaseSlider<TRangeType, TValueType>.m_LowValue
    BaseSlider<TRangeType, TValueType>.m_PreviousValue
    BaseSlider<TRangeType, TValueType>.m_Value
    BaseSlider<TRangeType, TValueType>.lowValue
    BaseSlider<TRangeType, TValueType>.highValue
    BaseSlider<TRangeType, TValueType>.formatString
    BaseSlider<TRangeType, TValueType>.SetValueWithoutNotify(TRangeType)
    BaseSlider<TRangeType, TValueType>.value
    BaseSlider<TRangeType, TValueType>.invalid
    BaseSlider<TRangeType, TValueType>.validateValue
    BaseSlider<TRangeType, TValueType>.OnSliderRangeChanged()
    BaseSlider<TRangeType, TValueType>.OnGeometryChanged(GeometryChangedEvent)
    BaseSlider<TRangeType, TValueType>.OnTrackUp(Draggable)
    BaseSlider<TRangeType, TValueType>.OnTrackDown(Draggable)
    BaseSlider<TRangeType, TValueType>.OnTrackDragged(Draggable)
    BaseSlider<TRangeType, TValueType>.SetValueFromDrag(Single)
    BaseSlider<TRangeType, TValueType>.GetSliderRect()
    BaseSlider<TRangeType, TValueType>.ComputeValueFromHandlePosition(Single, Single)
    BaseSlider<TRangeType, TValueType>.OnTrackClicked()
    BaseSlider<TRangeType, TValueType>.GetClampedValue(TRangeType)
    BaseSlider<TRangeType, TValueType>.ClampValue()
    BaseSlider<TRangeType, TValueType>.Clamp(TRangeType, TValueType, TValueType)
    BaseSlider<TRangeType, TValueType>.ParseValueToString(TRangeType)
    BaseSlider<TRangeType, TValueType>.ParseHandleValueToString(TValueType)
    BaseSlider<TRangeType, TValueType>.ParseStringToValue(String, TRangeType)
    BaseSlider<TRangeType, TValueType>.SliderLerpUnclamped(TValueType, TValueType, Single)
    BaseSlider<TRangeType, TValueType>.SliderNormalizeValue(TValueType, TValueType, TValueType)
    BaseSlider<TRangeType, TValueType>.Decrement(TValueType)
    BaseSlider<TRangeType, TValueType>.Increment(TValueType)
    ExVisualElement.contentContainer
    ExVisualElement.outlineColor
    ExVisualElement.backgroundColor
    ExVisualElement.passMask
    VisualElement.disabledUssClassName
    UnityEngine.UIElements.VisualElement.ExecuteDefaultAction(UnityEngine.UIElements.EventBase)
    UnityEngine.UIElements.VisualElement.Focus()
    VisualElement.SendEvent(EventBase)
    UnityEngine.UIElements.VisualElement.SetEnabledFromHierarchy(System.Boolean)
    VisualElement.SetEnabled(Boolean)
    VisualElement.MarkDirtyRepaint()
    VisualElement.ContainsPoint(Vector2)
    UnityEngine.UIElements.VisualElement.Overlaps(UnityEngine.Rect)
    UnityEngine.UIElements.VisualElement.DoMeasure(System.Single, UnityEngine.UIElements.VisualElement.MeasureMode, System.Single, UnityEngine.UIElements.VisualElement.MeasureMode)
    UnityEngine.UIElements.VisualElement.ToString()
    VisualElement.GetClasses()
    VisualElement.ClearClassList()
    VisualElement.AddToClassList(String)
    VisualElement.RemoveFromClassList(String)
    VisualElement.ToggleInClassList(String)
    VisualElement.EnableInClassList(String, Boolean)
    VisualElement.ClassListContains(String)
    VisualElement.FindAncestorUserData()
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.Experimental.ITransitionAnimations.Start(System.Single, System.Single, System.Int32, System.Action<UnityEngine.UIElements.VisualElement, System.Single>)
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.Experimental.ITransitionAnimations.Start(UnityEngine.Rect, UnityEngine.Rect, System.Int32, System.Action<UnityEngine.UIElements.VisualElement, UnityEngine.Rect>)
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.Experimental.ITransitionAnimations.Start(UnityEngine.Color, UnityEngine.Color, System.Int32, System.Action<UnityEngine.UIElements.VisualElement, UnityEngine.Color>)
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.Experimental.ITransitionAnimations.Start(UnityEngine.Vector3, UnityEngine.Vector3, System.Int32, System.Action<UnityEngine.UIElements.VisualElement, UnityEngine.Vector3>)
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.Experimental.ITransitionAnimations.Start(UnityEngine.Vector2, UnityEngine.Vector2, System.Int32, System.Action<UnityEngine.UIElements.VisualElement, UnityEngine.Vector2>)
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.Experimental.ITransitionAnimations.Start(UnityEngine.Quaternion, UnityEngine.Quaternion, System.Int32, System.Action<UnityEngine.UIElements.VisualElement, UnityEngine.Quaternion>)
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.Experimental.ITransitionAnimations.Start(UnityEngine.UIElements.Experimental.StyleValues, UnityEngine.UIElements.Experimental.StyleValues, System.Int32)
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.Experimental.ITransitionAnimations.Start(System.Func<UnityEngine.UIElements.VisualElement, System.Single>, System.Single, System.Int32, System.Action<UnityEngine.UIElements.VisualElement, System.Single>)
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.Experimental.ITransitionAnimations.Start(System.Func<UnityEngine.UIElements.VisualElement, UnityEngine.Rect>, UnityEngine.Rect, System.Int32, System.Action<UnityEngine.UIElements.VisualElement, UnityEngine.Rect>)
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.Experimental.ITransitionAnimations.Start(System.Func<UnityEngine.UIElements.VisualElement, UnityEngine.Color>, UnityEngine.Color, System.Int32, System.Action<UnityEngine.UIElements.VisualElement, UnityEngine.Color>)
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.Experimental.ITransitionAnimations.Start(System.Func<UnityEngine.UIElements.VisualElement, UnityEngine.Vector3>, UnityEngine.Vector3, System.Int32, System.Action<UnityEngine.UIElements.VisualElement, UnityEngine.Vector3>)
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.Experimental.ITransitionAnimations.Start(System.Func<UnityEngine.UIElements.VisualElement, UnityEngine.Vector2>, UnityEngine.Vector2, System.Int32, System.Action<UnityEngine.UIElements.VisualElement, UnityEngine.Vector2>)
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.Experimental.ITransitionAnimations.Start(System.Func<UnityEngine.UIElements.VisualElement, UnityEngine.Quaternion>, UnityEngine.Quaternion, System.Int32, System.Action<UnityEngine.UIElements.VisualElement, UnityEngine.Quaternion>)
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.Experimental.ITransitionAnimations.Start(UnityEngine.UIElements.Experimental.StyleValues, System.Int32)
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.Experimental.ITransitionAnimations.Layout(UnityEngine.Rect, System.Int32)
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.Experimental.ITransitionAnimations.TopLeft(UnityEngine.Vector2, System.Int32)
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.Experimental.ITransitionAnimations.Size(UnityEngine.Vector2, System.Int32)
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.Experimental.ITransitionAnimations.Scale(System.Single, System.Int32)
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.Experimental.ITransitionAnimations.Position(UnityEngine.Vector3, System.Int32)
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.Experimental.ITransitionAnimations.Rotation(UnityEngine.Quaternion, System.Int32)
    VisualElement.Add(VisualElement)
    VisualElement.Insert(Int32, VisualElement)
    VisualElement.Remove(VisualElement)
    VisualElement.RemoveAt(Int32)
    VisualElement.Clear()
    VisualElement.ElementAt(Int32)
    VisualElement.IndexOf(VisualElement)
    VisualElement.Children()
    UnityEngine.UIElements.VisualElement.Sort(System.Comparison<UnityEngine.UIElements.VisualElement>)
    VisualElement.BringToFront()
    VisualElement.SendToBack()
    VisualElement.PlaceBehind(VisualElement)
    VisualElement.PlaceInFront(VisualElement)
    VisualElement.RemoveFromHierarchy()
    UnityEngine.UIElements.VisualElement.GetFirstOfType<T>()
    UnityEngine.UIElements.VisualElement.GetFirstAncestorOfType<T>()
    VisualElement.Contains(VisualElement)
    VisualElement.FindCommonAncestor(VisualElement)
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IVisualElementScheduler.Execute(System.Action<UnityEngine.UIElements.TimerState>)
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IVisualElementScheduler.Execute(System.Action)
    VisualElement.viewDataKey
    VisualElement.userData
    UnityEngine.UIElements.VisualElement.canGrabFocus
    UnityEngine.UIElements.VisualElement.focusController
    VisualElement.usageHints
    VisualElement.transform
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.ITransform.position
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.ITransform.rotation
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.ITransform.scale
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.ITransform.matrix
    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
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IExperimentalFeatures.animation
    VisualElement.hierarchy
    UnityEngine.UIElements.VisualElement.cacheAsBitmap
    VisualElement.parent
    VisualElement.panel
    VisualElement.visualTreeAssetSource
    UnityEngine.UIElements.VisualElement.Item[System.Int32]
    VisualElement.childCount
    VisualElement.schedule
    VisualElement.style
    VisualElement.customStyle
    VisualElement.styleSheets
    VisualElement.tooltip
    VisualElement.resolvedStyle
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.alignContent
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.alignItems
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.alignSelf
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.backgroundColor
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.backgroundImage
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.borderBottomColor
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.borderBottomLeftRadius
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.borderBottomRightRadius
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.borderBottomWidth
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.borderLeftColor
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.borderLeftWidth
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.borderRightColor
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.borderRightWidth
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.borderTopColor
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.borderTopLeftRadius
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.borderTopRightRadius
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.borderTopWidth
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.bottom
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.color
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.display
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.flexBasis
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.flexDirection
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.flexGrow
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.flexShrink
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.flexWrap
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.fontSize
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.height
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.justifyContent
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.left
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.letterSpacing
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.marginBottom
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.marginLeft
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.marginRight
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.marginTop
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.maxHeight
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.maxWidth
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.minHeight
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.minWidth
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.opacity
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.paddingBottom
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.paddingLeft
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.paddingRight
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.paddingTop
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.position
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.right
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.rotate
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.scale
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.textOverflow
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.top
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.transformOrigin
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.transitionDelay
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.transitionDuration
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.transitionProperty
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.transitionTimingFunction
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.translate
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.unityBackgroundImageTintColor
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.unityBackgroundScaleMode
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.unityFont
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.unityFontDefinition
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.unityFontStyleAndWeight
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.unityParagraphSpacing
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.unitySliceBottom
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.unitySliceLeft
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.unitySliceRight
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.unitySliceTop
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.unityTextAlign
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.unityTextOutlineColor
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.unityTextOutlineWidth
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.unityTextOverflowPosition
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.visibility
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.whiteSpace
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.width
    UnityEngine.UIElements.VisualElement.UnityEngine.UIElements.IResolvedStyle.wordSpacing
    Focusable.Blur()
    Focusable.focusable
    Focusable.tabIndex
    Focusable.delegatesFocus
    UnityEngine.UIElements.CallbackEventHandler.RegisterCallback<TEventType>(UnityEngine.UIElements.EventCallback<TEventType>, UnityEngine.UIElements.TrickleDown)
    UnityEngine.UIElements.CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(UnityEngine.UIElements.EventCallback<TEventType, TUserArgsType>, TUserArgsType, UnityEngine.UIElements.TrickleDown)
    UnityEngine.UIElements.CallbackEventHandler.UnregisterCallback<TEventType>(UnityEngine.UIElements.EventCallback<TEventType>, UnityEngine.UIElements.TrickleDown)
    UnityEngine.UIElements.CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(UnityEngine.UIElements.EventCallback<TEventType, TUserArgsType>, UnityEngine.UIElements.TrickleDown)
    CallbackEventHandler.HandleEvent(EventBase)
    CallbackEventHandler.HasTrickleDownHandlers()
    CallbackEventHandler.HasBubbleUpHandlers()
    CallbackEventHandler.ExecuteDefaultActionAtTarget(EventBase)
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.AppUI.UI
    Syntax
    public abstract class RangeSliderBase<TRangeType, TValueType> : BaseSlider<TRangeType, TValueType>, IEventHandler, IStylePropertyAnimations, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IValidatableElement<TRangeType>, INotifyValueChanging<TRangeType>, INotifyValueChanged<TRangeType> where TRangeType : IEquatable<TRangeType> where TValueType : struct, IComparable, IEquatable<TValueType>
    Type Parameters
    Name Description
    TRangeType

    The range type.

    TValueType

    A comparable value type.

    Constructors

    RangeSliderBase()

    Default constructor.

    Declaration
    protected RangeSliderBase()

    Fields

    controlContainerUssClassName

    The Slider control container styling class.

    Declaration
    public static readonly string controlContainerUssClassName
    Field Value
    Type Description
    String

    controlsUssClassName

    The Slider controls styling class.

    Declaration
    public static readonly string controlsUssClassName
    Field Value
    Type Description
    String

    handleContainerUssClassName

    The Slider handle container styling class.

    Declaration
    public static readonly string handleContainerUssClassName
    Field Value
    Type Description
    String

    handleUssClassName

    The Slider handle styling class.

    Declaration
    public static readonly string handleUssClassName
    Field Value
    Type Description
    String

    inlineValueLabelUssClassName

    The Slider inline value label styling class.

    Declaration
    public static readonly string inlineValueLabelUssClassName
    Field Value
    Type Description
    String

    inlineValueUssClassName

    The Slider inline value styling class.

    Declaration
    public static readonly string inlineValueUssClassName
    Field Value
    Type Description
    String

    labelContainerUssClassName

    The Slider label container styling class.

    Declaration
    public static readonly string labelContainerUssClassName
    Field Value
    Type Description
    String

    labelUssClassName

    The Slider label styling class.

    Declaration
    public static readonly string labelUssClassName
    Field Value
    Type Description
    String

    noLabelUssClassName

    The Slider no label variant styling class.

    Declaration
    public static readonly string noLabelUssClassName
    Field Value
    Type Description
    String

    progressUssClassName

    The Slider progress styling class.

    Declaration
    public static readonly string progressUssClassName
    Field Value
    Type Description
    String

    sizeUssClassName

    The Slider size styling class.

    Declaration
    public static readonly string sizeUssClassName
    Field Value
    Type Description
    String

    tickLabelUssClassName

    The Slider tick label styling class.

    Declaration
    public static readonly string tickLabelUssClassName
    Field Value
    Type Description
    String

    tickLabelVariantUssClassName

    The Slider with tick labels variant styling class.

    Declaration
    public static readonly string tickLabelVariantUssClassName
    Field Value
    Type Description
    String

    ticksUssClassName

    The Slider ticks container styling class.

    Declaration
    public static readonly string ticksUssClassName
    Field Value
    Type Description
    String

    tickUssClassName

    The Slider tick styling class.

    Declaration
    public static readonly string tickUssClassName
    Field Value
    Type Description
    String

    trackUssClassName

    The Slider track styling class.

    Declaration
    public static readonly string trackUssClassName
    Field Value
    Type Description
    String

    ussClassName

    The Slider main styling class.

    Declaration
    public static readonly string ussClassName
    Field Value
    Type Description
    String

    valueLabelUssClassName

    The Slider value label styling class.

    Declaration
    public static readonly string valueLabelUssClassName
    Field Value
    Type Description
    String

    Properties

    filled

    If the slider progress is filled.

    Declaration
    public bool filled { get; set; }
    Property Value
    Type Description
    Boolean

    inlineValue

    The inline mode for the slider value element.

    Declaration
    public InlineValue inlineValue { get; set; }
    Property Value
    Type Description
    InlineValue

    label

    Text which will be used for the Slider label.

    Declaration
    public string label { get; set; }
    Property Value
    Type Description
    String

    maxValue

    Declaration
    public abstract TValueType maxValue { get; set; }
    Property Value
    Type Description
    TValueType

    minValue

    Declaration
    public abstract TValueType minValue { get; set; }
    Property Value
    Type Description
    TValueType

    size

    The size of the slider.

    Declaration
    public Size size { get; set; }
    Property Value
    Type Description
    Size

    tickCount

    The number of ticks to display on the slider.

    Declaration
    public int tickCount { get; set; }
    Property Value
    Type Description
    Int32

    tickLabel

    Should the tick labels be displayed.

    Declaration
    public bool tickLabel { get; set; }
    Property Value
    Type Description
    Boolean

    Methods

    Clamp(TRangeType, TValueType, TValueType)

    Declaration
    protected override TRangeType Clamp(TRangeType v, TValueType lowBound, TValueType highBound)
    Parameters
    Type Name Description
    TRangeType v
    TValueType lowBound
    TValueType highBound
    Returns
    Type Description
    TRangeType
    Overrides
    Unity.AppUI.UI.BaseSlider<TRangeType, TValueType>.Clamp(TRangeType, TValueType, TValueType)

    ClosestHandleIndex(Single)

    Declaration
    protected int ClosestHandleIndex(float mousePosition)
    Parameters
    Type Name Description
    Single mousePosition
    Returns
    Type Description
    Int32

    ComputeValueFromHandlePosition(Single, Single)

    Declaration
    protected override TRangeType ComputeValueFromHandlePosition(float sliderLength, float dragElementPos)
    Parameters
    Type Name Description
    Single sliderLength
    Single dragElementPos
    Returns
    Type Description
    TRangeType
    Overrides
    Unity.AppUI.UI.BaseSlider<TRangeType, TValueType>.ComputeValueFromHandlePosition(System.Single, System.Single)

    GetClampedValue(TValueType, TValueType, TValueType)

    Declaration
    protected abstract TValueType GetClampedValue(TValueType value, TValueType lowerValue, TValueType higherValue)
    Parameters
    Type Name Description
    TValueType value
    TValueType lowerValue
    TValueType higherValue
    Returns
    Type Description
    TValueType

    GetMaxValue(TRangeType)

    Declaration
    protected abstract TValueType GetMaxValue(TRangeType rangeValue)
    Parameters
    Type Name Description
    TRangeType rangeValue
    Returns
    Type Description
    TValueType

    GetMinValue(TRangeType)

    Declaration
    protected abstract TValueType GetMinValue(TRangeType rangeValue)
    Parameters
    Type Name Description
    TRangeType rangeValue
    Returns
    Type Description
    TValueType

    GetSliderRect()

    Returns the rect of the interactive part of the slider.

    Declaration
    protected override Rect GetSliderRect()
    Returns
    Type Description
    Rect

    The rect of the interactive part of the slider.

    Overrides
    Unity.AppUI.UI.BaseSlider<TRangeType, TValueType>.GetSliderRect()

    LerpUnclamped(TValueType, TValueType, Single)

    Declaration
    protected abstract TValueType LerpUnclamped(TValueType a, TValueType b, float interpolant)
    Parameters
    Type Name Description
    TValueType a
    TValueType b
    Single interpolant
    Returns
    Type Description
    TValueType

    MakeRangeValue(TValueType, TValueType)

    Declaration
    protected abstract TRangeType MakeRangeValue(TValueType minValue, TValueType maxValue)
    Parameters
    Type Name Description
    TValueType minValue
    TValueType maxValue
    Returns
    Type Description
    TRangeType

    OnSliderRangeChanged()

    Called when the low or high value of Slider has changed.

    Declaration
    protected override void OnSliderRangeChanged()
    Overrides
    Unity.AppUI.UI.BaseSlider<TRangeType, TValueType>.OnSliderRangeChanged()

    SetValueWithoutNotify(TRangeType)

    Set the value of the slider without notifying the change.

    Declaration
    public override void SetValueWithoutNotify(TRangeType newValue)
    Parameters
    Type Name Description
    TRangeType newValue

    The new value of the slider.

    Overrides
    Unity.AppUI.UI.BaseSlider<TRangeType, TValueType>.SetValueWithoutNotify(TRangeType)

    Extension Methods

    VisualElementExtensions.FindNavController(VisualElement)
    NotifyValueChangingExtensions.RegisterValueChangingCallback<TValueType>(INotifyValueChanging<TValueType>, EventCallback<ChangingEvent<TValueType>>)
    NotifyValueChangingExtensions.UnregisterValueChangingCallback<TValueType>(INotifyValueChanging<TValueType>, EventCallback<ChangingEvent<TValueType>>)
    VisualElementExtensions.GetContext(VisualElement)
    VisualElementExtensions.GetChildren<T>(VisualElement, Boolean)
    VisualElementExtensions.GetPreferredTooltipPlacement(VisualElement)
    VisualElementExtensions.SetPreferredTooltipPlacement(VisualElement, PopoverPlacement)
    VisualElementExtensions.GetTooltipTemplate(VisualElement)
    VisualElementExtensions.SetTooltipTemplate(VisualElement, VisualElement)
    VisualElementExtensions.GetWorldBoundingBox(VisualElement)
    VisualElementExtensions.GetContextProvider<T>(VisualElement)
    VisualElementExtensions.GetContext<T>(VisualElement)
    VisualElementExtensions.GetSelfContext<T>(VisualElement)
    VisualElementExtensions.ProvideContext<T>(VisualElement, T)
    VisualElementExtensions.IsContextProvider<T>(VisualElement)
    VisualElementExtensions.RegisterContextChangedCallback<T>(VisualElement, EventCallback<ContextChangedEvent<T>>)
    VisualElementExtensions.UnregisterContextChangedCallback<T>(VisualElement, EventCallback<ContextChangedEvent<T>>)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023