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
public ref class PinchSlider : UnityEngine::MonoBehaviour, Microsoft::MixedReality::Toolkit::Input::IMixedRealityFocusHandler, Microsoft::MixedReality::Toolkit::Input::IMixedRealityPointerHandler, Microsoft::MixedReality::Toolkit::Input::IMixedRealityTouchHandler, 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")]
public class PinchSlider : UnityEngine.MonoBehaviour, Microsoft.MixedReality.Toolkit.Input.IMixedRealityFocusHandler, Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointerHandler, Microsoft.MixedReality.Toolkit.Input.IMixedRealityTouchHandler, 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
[<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
interface IMixedRealityTouchHandler
Public Class PinchSlider
Inherits MonoBehaviour
Implements IEventSystemHandler, IMixedRealityFocusHandler, IMixedRealityPointerHandler
Public Class PinchSlider
Inherits MonoBehaviour
Implements IEventSystemHandler, IMixedRealityFocusHandler, IMixedRealityPointerHandler, IMixedRealityTouchHandler
- Inheritance
-
UnityEngine.MonoBehaviourPinchSlider
- Derived
- Attributes
-
UnityEngine.AddComponentMenuAttribute UnityEngine.HelpURLAttribute
- Implements
-
IMixedRealityFocusHandler IMixedRealityPointerHandler UnityEngine.EventSystems.IEventSystemHandler IMixedRealityTouchHandler
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. |
IsTouchable |
Property accessor of isTouchable. Determines whether or not this slider is controllable via touch events |
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. |
SliderStepDivisions |
Property accessor of sliderStepDivisions, it holds the number of subdivisions the slider is split into. |
SliderTrackDirection |
Returns the vector from the slider start to end positions |
SliderValue | |
SnapToPosition |
Property accessor of snapToPosition. Determines whether or not this slider snaps to the designated position on the slider |
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. |
ThumbCollider |
Property accessor of thumbCollider. Used to control the slider on the track when snapToPosition is false |
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. |
TouchCollider |
Property accessor of touchCollider. Used to determine the position we snap the slider do when snapToPosition is true |
TrackVisuals |
Property accessor of trackVisuals, it contains the desired track Visuals. This will get rotated to match the slider axis. |
UseSliderStepDivisions |
Property accessor of useSliderStepDivisions, it determines whether the slider steps according to subdivisions |