Editar

Compartilhar via


TouchSlider Class

Definition

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.MonoBehaviour
TouchSlider
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

Applies to