TouchSlider 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.
This control enables touching a slider with one finger to set its value
public ref class TouchSlider : UnityEngine::MonoBehaviour, Microsoft::MixedReality::Toolkit::Input::IMixedRealityTouchHandler, UnityEngine::EventSystems::IEventSystemHandler
public class TouchSlider : UnityEngine.MonoBehaviour, Microsoft.MixedReality.Toolkit.Input.IMixedRealityTouchHandler, UnityEngine.EventSystems.IEventSystemHandler
type TouchSlider = class
inherit MonoBehaviour
interface IMixedRealityTouchHandler
interface IEventSystemHandler
Public Class TouchSlider
Inherits MonoBehaviour
Implements IEventSystemHandler, IMixedRealityTouchHandler
- Inheritance
-
UnityEngine.MonoBehaviourTouchSlider
- Implements
-
IMixedRealityTouchHandler UnityEngine.EventSystems.IEventSystemHandler
Constructors
TouchSlider() |
Methods
OnTouchCompleted(HandTrackingInputEventData) | |
OnTouchStarted(HandTrackingInputEventData) | |
OnTouchUpdated(HandTrackingInputEventData) |
When the collider is touched, use the touch point to Calculate the Slider value |
UpdateSliderText() |
This can get called from a pinch slider's OnValueChanged event to display the text value |