Class Leap::DebugHand¶
- class Leap.DebugHand : public Leap.HandModelBase¶
-
A HandModel that draws lines for the bones in the hand and its fingers.
The debugs lines are only drawn in the Editor Scene view (when a hand is tracked) and not in the Game view. Use debug hands when you aren’t using visible hands in a scene so that you can see where the hands are in the scene view.
Public Functions
- virtual override Hand GetLeapHand ()¶
-
Returns the Leap Hand object represented by this HandModelBase. Note that any physical quantities and directions obtained from the Leap Hand object are relative to the Leap coordinate system, which uses a right-handed axes and units of millimeters.
- Return
- virtual override void SetLeapHand (Hand hand)¶
Assigns a Leap Hand object to this HandModelBase.
- Param hand
- virtual override bool SupportsEditorPersistence ()¶
Returns whether or not this hand model supports editor persistence. This is false by default and must be opt-in by a developer making their own hand model script if they want editor persistence.
- virtual override void InitHand ()¶
Initializes the hand and calls the line drawing function.
- virtual override void UpdateHand ()¶
Updates the hand and calls the line drawing function.