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
Implements
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()