Skip to main content

LensStudio:AssetUtils.js.findOrCreateObjectTrackingTexture

Function

Finds or creates an object tracking texture asset.

findOrCreateObjectTrackingTexture(assetManager, destination, type): Asset

Finds or creates an object tracking texture asset.

Parameters

ParameterTypeDescription
assetManagerAssetManagerThe asset manager to search for or create the asset.
destinationPathThe destination path for the asset.
typeObjectTrackingTextureTypeThe type of the object tracking texture.

Returns

Asset

The found or created object tracking texture asset.