Прочетете на английски Редактиране

Споделяне чрез


PinchSlider Class

Definition

A slider that can be moved by grabbing / pinching a slider thumb

C++
public ref class PinchSlider : UnityEngine::MonoBehaviour, Microsoft::MixedReality::Toolkit::Input::IMixedRealityFocusHandler, Microsoft::MixedReality::Toolkit::Input::IMixedRealityPointerHandler, UnityEngine::EventSystems::IEventSystemHandler
C++
public ref class PinchSlider : UnityEngine::MonoBehaviour, Microsoft::MixedReality::Toolkit::Input::IMixedRealityFocusHandler, Microsoft::MixedReality::Toolkit::Input::IMixedRealityPointerHandler, Microsoft::MixedReality::Toolkit::Input::IMixedRealityTouchHandler, UnityEngine::EventSystems::IEventSystemHandler
Inheritance
UnityEngine.MonoBehaviour
PinchSlider
Derived
Attributes
UnityEngine.AddComponentMenuAttribute UnityEngine.HelpURLAttribute
Implements

Constructors

Fields

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

Methods

Applies to

Продукт Версии
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0