Class XRHandMeshController
A component that controls the visual representation for an XRHand in the scene. This component subscribes to events from an XRHandTrackingEvents component to enable and disable a mesh renderer when tracking is acquired or lost.
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindFirstObjectByType<T>()
UnityEngine.Object.FindAnyObjectByType<T>()
UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
Namespace: UnityEngine.XR.Hands
Syntax
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.hands@1.1/api/UnityEngine.XR.Hands.XRHandMeshController.html")]
public class XRHandMeshController : MonoBehaviour
Properties
handIsTracked
Whether the hand for this visual is currently being tracked
Declaration
public bool handIsTracked { get; }
Property Value
Type | Description |
---|---|
Boolean |
handMeshRenderer
The renderer used to draw the hand mesh.
Declaration
public Renderer handMeshRenderer { get; set; }
Property Value
Type | Description |
---|---|
Renderer |
handTrackingEvents
The XRHandTrackingEvents component that will be the source of hand tracking events for this mesh controller.
Declaration
public XRHandTrackingEvents handTrackingEvents { get; set; }
Property Value
Type | Description |
---|---|
XRHandTrackingEvents |
hideMeshWhenTrackingIsLost
If enabled, the hand mesh renderer will be disabled when the hand tracking is lost.
Declaration
public bool hideMeshWhenTrackingIsLost { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
showMeshWhenTrackingIsAcquired
If enabled, the hand mesh renderer will be enabled when the hand tracking is acquired.
Declaration
public bool showMeshWhenTrackingIsAcquired { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
OnDisable()
See MonoBehaviour.
Declaration
protected virtual void OnDisable()
OnEnable()
See MonoBehaviour.
Declaration
protected virtual void OnEnable()
Reset()
See MonoBehaviour.
Declaration
protected virtual void Reset()