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
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 |
|
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