NearInteractionTouchableUnityUI Class

Definition

Use a Unity UI RectTransform as touchable surface.

C++
public ref class NearInteractionTouchableUnityUI : Microsoft::MixedReality::Toolkit::Input::NearInteractionTouchableSurface
Inheritance
UnityEngine.MonoBehaviour
NearInteractionTouchableUnityUI
Attributes
UnityEngine.AddComponentMenuAttribute UnityEngine.RequireComponentAttribute

Constructors

Fields

Properties

Bounds
DebounceThreshold

Distance in front of the surface at which you will receive a touch completed event.

(Inherited from BaseNearInteractionTouchable)
EventsToReceive

The type of event to receive.

(Inherited from BaseNearInteractionTouchable)
Instances
LocalCenter
LocalPressDirection

Methods

DistanceToTouchable(Vector3, Vector3) UnityEngine.MonoBehaviour.DistanceToTouchable(UnityEngine.Vector3,UnityEngine.Vector3@)
OnDisable()
OnEnable()
OnValidate() (Inherited from BaseNearInteractionTouchable)

Applies to

Produit Versions
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