Editor.Assets.HandTracking3DHandType
EnumUsed with {Editor.Assets.HandTracking3DAsset}.
Index
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
Right:
number
Right hand.