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
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.XR.Hands
Assembly: solution.dll
Syntax
[HelpURL("https://docs.unity.cn/Packages/com.unity.xr.hands@1.4/api/UnityEngine.XR.Hands.XRHandMeshController.html")]
public class XRHandMeshController : MonoBehaviour
Properties
| Name | Description |
|---|---|
| handIsTracked | Whether the hand for this visual is currently being tracked |
| handMeshRenderer | The renderer used to draw the hand mesh. |
| handTrackingEvents | The XRHandTrackingEvents component that will be the source of hand tracking events for this mesh controller. |
| hideMeshWhenTrackingIsLost | If enabled, the hand mesh renderer will be disabled when the hand tracking is lost. |
| showMeshWhenTrackingIsAcquired | If enabled, the hand mesh renderer will be enabled when the hand tracking is acquired. |
Methods
| Name | Description |
|---|---|
| OnDisable() | See MonoBehaviour. |
| OnEnable() | See MonoBehaviour. |
| Reset() | See MonoBehaviour. |