Tanoda
|
This simple example script disables the InteractionHand script and has event outputs to drive hiding Leap hand renderers when it detects that an InteractionXRController is tracked and moving (e.g. it has been picked up). More...
Public Attributes | |
InteractionXRController | intCtrl |
InteractionHand | intHand |
UnityEvent | OnInteractionHandEnabled |
UnityEvent | OnInteractionHandDisabled |
This simple example script disables the InteractionHand script and has event outputs to drive hiding Leap hand renderers when it detects that an InteractionXRController is tracked and moving (e.g. it has been picked up).
It also does some basic checks with hand distance so that you can see your hands when you put the controller down and you hide the hands when they're obviously holding the controller (e.g. tracked as very close to the controller).
Definition at line 24 of file HideInteractionHandWhenControllerMoving.cs.
InteractionXRController Leap.Unity.Interaction.Examples.HideInteractionHandWhenControllerMoving.intCtrl |
Definition at line 26 of file HideInteractionHandWhenControllerMoving.cs.
InteractionHand Leap.Unity.Interaction.Examples.HideInteractionHandWhenControllerMoving.intHand |
Definition at line 27 of file HideInteractionHandWhenControllerMoving.cs.
UnityEvent Leap.Unity.Interaction.Examples.HideInteractionHandWhenControllerMoving.OnInteractionHandDisabled |
Definition at line 30 of file HideInteractionHandWhenControllerMoving.cs.
UnityEvent Leap.Unity.Interaction.Examples.HideInteractionHandWhenControllerMoving.OnInteractionHandEnabled |
Definition at line 29 of file HideInteractionHandWhenControllerMoving.cs.