Skip to main content

Editor.Assets.HandTracking3DHandType

Enum

Used with {Editor.Assets.HandTracking3DAsset}.

Index

Enumeration Members

Example

const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
const assetManager = model.project.assetManager;

// Create a HandTracking3DAsset and configure it for the right hand
const handAsset = assetManager.createNativeAsset(
'HandTracking3DAsset', 'RightHand', new Editor.Model.SourcePath(new Editor.Path(''), Editor.Model.SourceRootDirectory.Assets)
) as Editor.Assets.HandTracking3DAsset;

handAsset.handType = Editor.Assets.HandTracking3DHandType.Right;
console.log(`Created hand asset: "${handAsset.name}", type: Right (${handAsset.handType})`);

// Switch to left hand
handAsset.handType = Editor.Assets.HandTracking3DHandType.Left;
console.log(`Switched to Left (${handAsset.handType})`);

Enumeration Members

Left

Left: number

Left hand.


Right: number

Right hand.