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.

Search Results for

    Show / Hide Table of Contents

    Class StepSlider

    A slider with a fixed number of step values that can be moved by grabbing / pinching a slider thumb Number of steps defaults to 0, if number isn't set then slider behaves just like a regular PinchSlider

    Inheritance
    Object
    StepSlider
    Implements
    IMixedRealityPointerHandler
    Namespace: Microsoft.MixedReality.Toolkit.Experimental.UI
    Assembly: cs.temp.dll.dll
    Syntax
    public class StepSlider : PinchSlider, IMixedRealityPointerHandler

    Properties

    SliderStepDivisions

    Property accessor of sliderStepDivisions, it holds the number of subdivisions the slider is split into.

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

    Methods

    OnPointerDragged(MixedRealityPointerEventData)

    Called every frame a pointer is down. Can be used to implement drag-like behaviors. Uses member sliderStepVal to move up and down the steps on the slider.

    Declaration
    public override void OnPointerDragged(MixedRealityPointerEventData eventData)
    Parameters
    Type Name Description
    MixedRealityPointerEventData eventData

    Start()

    Declaration
    protected override void Start()

    Implements

    IMixedRealityPointerHandler
    In This Article
    Back to top Generated by DocFX