PinchSlider Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A slider that can be moved by grabbing / pinching a slider thumb
public ref class PinchSlider : UnityEngine::MonoBehaviour, Microsoft::MixedReality::Toolkit::Input::IMixedRealityFocusHandler, Microsoft::MixedReality::Toolkit::Input::IMixedRealityPointerHandler, UnityEngine::EventSystems::IEventSystemHandler
[UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/PinchSlider")]
[UnityEngine.HelpURL("https://docs.microsoft.com/windows/mixed-reality/mrtk-unity/features/ux-building-blocks/sliders")]
public class PinchSlider : UnityEngine.MonoBehaviour, Microsoft.MixedReality.Toolkit.Input.IMixedRealityFocusHandler, Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointerHandler, UnityEngine.EventSystems.IEventSystemHandler
[<UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/PinchSlider")>]
[<UnityEngine.HelpURL("https://docs.microsoft.com/windows/mixed-reality/mrtk-unity/features/ux-building-blocks/sliders")>]
type PinchSlider = class
inherit MonoBehaviour
interface IMixedRealityPointerHandler
interface IEventSystemHandler
interface IMixedRealityFocusHandler
Public Class PinchSlider
Inherits MonoBehaviour
Implements IEventSystemHandler, IMixedRealityFocusHandler, IMixedRealityPointerHandler
- Inheritance
-
UnityEngine.MonoBehaviourPinchSlider
- Derived
- Attributes
-
UnityEngine.AddComponentMenuAttribute UnityEngine.HelpURLAttribute
- Implements
Constructors
PinchSlider() |
Fields
OnHoverEntered | |
OnHoverExited | |
OnInteractionEnded | |
OnInteractionStarted | |
OnValueUpdated |
Properties
ActivePointer |
Interface for handling pointer being used in UX interaction. |
CurrentSliderAxis |
Property accessor of sliderAxis. The axis the slider moves along. |
SliderEndDistance | |
SliderEndPosition |
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. |
SliderStartDistance | |
SliderStartPosition |
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. |
SliderTrackDirection |
Returns the vector from the slider start to end positions |
SliderValue | |
StartPointerPosition |
Starting position of mixed reality pointer in world space Used to track pointer movement |
StartSliderValue |
Float value that holds the starting value of the slider. |
ThumbRoot | |
ThumbVisuals |
Property accessor of thumbVisuals, it contains the desired tick marks. This will get rotated to match the slider axis. |
TickMarks |
Property accessor of tickMarks, it contains the desired tick Marks. This will get rotated to match the slider axis. |
TrackVisuals |
Property accessor of trackVisuals, it contains the desired track Visuals. This will get rotated to match the slider axis. |