NearInteractionTouchableUnityUI 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.
Use a Unity UI RectTransform as touchable surface.
C++
public ref class NearInteractionTouchableUnityUI : Microsoft::MixedReality::Toolkit::Input::NearInteractionTouchableSurface
[UnityEngine.AddComponentMenu("Scripts/MRTK/Services/NearInteractionTouchableUnityUI")]
[UnityEngine.RequireComponent(typeof(UnityEngine.RectTransform))]
public class NearInteractionTouchableUnityUI : Microsoft.MixedReality.Toolkit.Input.NearInteractionTouchableSurface
[<UnityEngine.AddComponentMenu("Scripts/MRTK/Services/NearInteractionTouchableUnityUI")>]
[<UnityEngine.RequireComponent(typeof(UnityEngine.RectTransform))>]
type NearInteractionTouchableUnityUI = class
inherit NearInteractionTouchableSurface
Public Class NearInteractionTouchableUnityUI
Inherits NearInteractionTouchableSurface
- Inheritance
-
UnityEngine.MonoBehaviourNearInteractionTouchableUnityUI
- Attributes
-
UnityEngine.AddComponentMenuAttribute UnityEngine.RequireComponentAttribute
debounce |
(Inherited from BaseNearInteractionTouchable) |
events |
(Inherited from BaseNearInteractionTouchable) |
Bounds | |
Debounce |
Distance in front of the surface at which you will receive a touch completed event. (Inherited from BaseNearInteractionTouchable) |
Events |
The type of event to receive. (Inherited from BaseNearInteractionTouchable) |
Instances | |
Local |
|
Local |
Distance |
UnityEngine.MonoBehaviour.DistanceToTouchable(UnityEngine.Vector3,UnityEngine.Vector3@) |
On |
|
On |
|
On |
(Inherited from BaseNearInteractionTouchable) |
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 |