Class PinchSlider
A slider that can be moved by grabbing / pinching a slider thumb
Implements
IMixedRealityPointerHandler
IMixedRealityFocusHandler
Assembly: cs.temp.dll.dll
public class PinchSlider : MonoBehaviour, IMixedRealityPointerHandler, IMixedRealityFocusHandler
Fields
Declaration
public SliderEvent OnHoverEntered
Field Value
Declaration
public SliderEvent OnHoverExited
Field Value
Declaration
public SliderEvent OnInteractionEnded
Field Value
Declaration
public SliderEvent OnInteractionStarted
Field Value
Declaration
public SliderEvent OnValueUpdated
Field Value
Properties
Property accessor of sliderAxis. The axis the slider moves along.
Declaration
public SliderAxis CurrentSliderAxis { get; set; }
Property Value
Declaration
public float SliderEndDistance { get; set; }
Property Value
Gets the end position of the slider, in world space, or zero if invalid.
Sets the end position of the slider, in world space, projected to the slider's axis.
Declaration
public Vector3 SliderEndPosition { get; set; }
Property Value
Declaration
public float SliderStartDistance { get; set; }
Property Value
Gets the start position of the slider, in world space, or zero if invalid.
Sets the start position of the slider, in world space, projected to the slider's axis.
Declaration
public Vector3 SliderStartPosition { get; set; }
Property Value
Returns the vector from the slider start to end positions
Declaration
public Vector3 SliderTrackDirection { get; }
Property Value
Declaration
public float SliderValue { get; set; }
Property Value
Declaration
public GameObject ThumbRoot { get; set; }
Property Value
Type |
Description |
GameObject |
|
Property accessor of thumbVisuals, it contains the desired tick marks. This will get rotated to match the slider axis.
Declaration
public GameObject ThumbVisuals { get; set; }
Property Value
Type |
Description |
GameObject |
|
Property accessor of tickMarks, it contains the desired tick Marks. This will get rotated to match the slider axis.
Declaration
public GameObject TickMarks { get; set; }
Property Value
Type |
Description |
GameObject |
|
Property accessor of trackVisuals, it contains the desired track Visuals. This will get rotated to match the slider axis.
Declaration
public GameObject TrackVisuals { get; set; }
Property Value
Type |
Description |
GameObject |
|
Methods
Declaration
public void OnFocusEnter(FocusEventData eventData)
Parameters
Type |
Name |
Description |
FocusEventData |
eventData |
|
Declaration
public void OnFocusExit(FocusEventData eventData)
Parameters
Type |
Name |
Description |
FocusEventData |
eventData |
|
Declaration
public void OnPointerClicked(MixedRealityPointerEventData eventData)
Parameters
Type |
Name |
Description |
MixedRealityPointerEventData |
eventData |
|
Declaration
public void OnPointerDown(MixedRealityPointerEventData eventData)
Parameters
Type |
Name |
Description |
MixedRealityPointerEventData |
eventData |
|
Declaration
public void OnPointerDragged(MixedRealityPointerEventData eventData)
Parameters
Type |
Name |
Description |
MixedRealityPointerEventData |
eventData |
|
Declaration
public void OnPointerUp(MixedRealityPointerEventData eventData)
Parameters
Type |
Name |
Description |
MixedRealityPointerEventData |
eventData |
|
Declaration
Implements
IMixedRealityPointerHandler
IMixedRealityFocusHandler