Beta
A native asset that provides information for object tracking texture. Learn more at "Lens Scripting".Built-In.ObjectTrackingTextureProvider. Import with Editor.Model.AssetManager.createNativeAsset.
const model = pluginSystem.findInterface(Editor.Model.IModel);const assetManager = model.project.assetManager;const destination new Editor.Path('');const trackingType = Editor.Assets.ObjectTrackingTextureType.Nails;const result = assetManager.createNativeAsset('ObjectTrackingTexture', 'Object Tracking Texture', destination);result.trackingType = trackingType;const objectTrackingTexParam = new Editor.Assets.TextureParameter(objectTrackingTexImage.id); Copy
const model = pluginSystem.findInterface(Editor.Model.IModel);const assetManager = model.project.assetManager;const destination new Editor.Path('');const trackingType = Editor.Assets.ObjectTrackingTextureType.Nails;const result = assetManager.createNativeAsset('ObjectTrackingTexture', 'Object Tracking Texture', destination);result.trackingType = trackingType;const objectTrackingTexParam = new Editor.Assets.TextureParameter(objectTrackingTexImage.id);
Readonly
The unique id of the entity.
The name of the asset.
The entity's type.
A list of entities which this entity has a reference to.
A list of entities which has a reference to this entity.
Swap this entity for another one based on a JSON of the current entity id and the target entity id.
A native asset that provides information for object tracking texture. Learn more at "Lens Scripting".Built-In.ObjectTrackingTextureProvider. Import with Editor.Model.AssetManager.createNativeAsset.
Example