We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

    Show / Hide Table of Contents

    Class SliderEventData

    Inheritance
    Object
    SliderEventData
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.UI
    Assembly: cs.temp.dll.dll
    Syntax
    public class SliderEventData

    Constructors

    SliderEventData(Single, Single, IMixedRealityPointer, PinchSlider)

    Declaration
    public SliderEventData(float o, float n, IMixedRealityPointer pointer, PinchSlider slider)
    Parameters
    Type Name Description
    Single o
    Single n
    IMixedRealityPointer pointer
    PinchSlider slider

    Properties

    NewValue

    The current value of the slider

    Declaration
    public float NewValue { get; }
    Property Value
    Type Description
    Single

    OldValue

    The previous value of the slider

    Declaration
    public float OldValue { get; }
    Property Value
    Type Description
    Single

    Pointer

    The currently active pointer manipulating / hovering the slider, or null if no pointer is manipulating the slider. Note: OnSliderUpdated is called with .Pointer == null OnStart, so always check if this field is null before using!

    Declaration
    public IMixedRealityPointer Pointer { get; set; }
    Property Value
    Type Description
    IMixedRealityPointer

    Slider

    The slider that triggered this event

    Declaration
    public PinchSlider Slider { get; }
    Property Value
    Type Description
    PinchSlider
    Back to top Generated by DocFX