Tanoda
Leap.Unity.Interaction.Examples.HideInteractionHandWhenControllerMoving Class Reference

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...

Inheritance diagram for Leap.Unity.Interaction.Examples.HideInteractionHandWhenControllerMoving:

Public Attributes

InteractionXRController intCtrl
 
InteractionHand intHand
 
UnityEvent OnInteractionHandEnabled
 
UnityEvent OnInteractionHandDisabled
 

Detailed Description

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.

Member Data Documentation

◆ intCtrl

InteractionXRController Leap.Unity.Interaction.Examples.HideInteractionHandWhenControllerMoving.intCtrl

Definition at line 26 of file HideInteractionHandWhenControllerMoving.cs.

◆ intHand

InteractionHand Leap.Unity.Interaction.Examples.HideInteractionHandWhenControllerMoving.intHand

Definition at line 27 of file HideInteractionHandWhenControllerMoving.cs.

◆ OnInteractionHandDisabled

UnityEvent Leap.Unity.Interaction.Examples.HideInteractionHandWhenControllerMoving.OnInteractionHandDisabled

Definition at line 30 of file HideInteractionHandWhenControllerMoving.cs.

◆ OnInteractionHandEnabled

UnityEvent Leap.Unity.Interaction.Examples.HideInteractionHandWhenControllerMoving.OnInteractionHandEnabled

Definition at line 29 of file HideInteractionHandWhenControllerMoving.cs.


The documentation for this class was generated from the following file: