👐
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
  • Methods
  • Example
  1. API Reference

HandExtensions

Extension methods for the Hand class.

public static class HandExtensions

This is a static class.

Methods

Name
Return Type
Description

Static. Returns the hand closest to the center of the field of view in the specified list of hands.

Static. Returns the leftmost hand in the specified list of hands.

Static. Returns the rightmost hand in the specified list of hands.

Example

The examples show how to locate a hand depending on its position with the HandExtensions class.

Detect hands

First, detect the hands in an image.

List<Hand> hands = handTracker.Load(texture);

Retrieve the hand depending on the position

Get the hand closest to the center in the specified list of hands.

Hand center = HandExtensions.Center(hands);

Get the leftmost hand in the specified list of hands.

Hand leftmost = HandExtensions.Leftmost(hands);

Get the rightmost hand in the specified list of hands.

Hand rightmost = HandExtensions.Rightmost(hands);
PreviousHandNextHandSide

Last updated 1 year ago

Center(List<>)

Leftmost(List<>)

Rightmost(List<>)

Hand
Hand
Hand
Hand
Hand
Hand