👐
Hand & Finger Tracking for Unity
HomepageSupportContact
  • Hand Tracking Unity Plugin
    • Overview
    • System Requirements
    • Installation
    • QuickStart
    • Supported Joints
  • Help & Support
    • Ask for help
    • Request a feature
  • Examples
    • Detect hand and retrieve joints
    • No Code: Detect and visualize hands from a Sprite
    • Detect and visualize hands from a Sprite
    • Detect and visualize hands from a video
    • Use webcam to detect and visualize hands (2D Canvas)
    • Use webcam to detect and visualize hands (3D World space)
  • API Reference
    • Finger
      • Index
      • Middle
      • Palm
      • Pinky
      • Ring
      • Thumb
    • FingerJoint
    • FingerJointType
    • Hand
    • HandExtensions
    • HandSide
    • HandTracker
  • UI Reference
    • HandManager
    • HandViewer
    • HandVisual
    • ImageView
    • StreamSource
      • SpriteSource
      • VideoSource
      • WebcamSource
    • HandTrackerExtensions
    • WebcamSelector
Powered by GitBook
On this page
  • Constructors
  • Properties
  • Methods
  • Example
  1. UI Reference

HandManager

Loads hands to a 2D Canvas or 3D space.

PreviousHandTrackerNextHandViewer

Last updated 1 year ago

public class HandManager : MonoBehaviour

Inherits class.

Constructors

Name
Description

HandManager()

Creates a new HandManager object.

Properties

Name
Type
Description

HandVisuals

A list of handVisuals.

Is2D

bool

Whether it shows the 2D or 3D positions.

Methods

Name
Return Type
Description

void

Loads the specified hands to a 2D Canvas or 3D space. If an optional offset list is provided, it relocates the hands' position in 3D by the specified offset value. The offset is measured in meters.

Clear

void

Removes all elements from the HandManager object.

Example

The example shows how to load detected hands to a Canvas with the HandManager class.

//Detect hands.
List<Hand> hands = handTracker.Load(image);

// Create a handManager.
HandManager handManager= new HandManager();

// Load hands to a 2D Canvas or 3D space.
handManager.Load(hands);

List<>

Load(List<>, List<>)

UnityEngine.MonoBehaviour
HandVisual
Hand
UnityEngine.Vector3