TouchSlider Class
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
C++
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 Unity
Engine. Event Systems. IEvent System Handler
On |
|
On |
|
On |
When the collider is touched, use the touch point to Calculate the Slider value |
Update |
This can get called from a pinch slider's OnValueChanged event to display the text value |
Product | Versions |
---|---|
MRTK2 Unity 2018 | 2.7.0 |
MRTK2 Unity 2019 | 2.7.0 |
MRTK2 Unity 2020 | 2.7.0 |