Skip to main content

LensStudio:AssetUtils.js.findOrCreateScreenTexture

Function

Finds or creates a screen texture asset.

findOrCreateScreenTexture(assetManager, destination): Asset

Finds or creates a screen texture asset.

Parameters

ParameterTypeDescription
assetManagerAssetManagerThe asset manager to use.
destinationPathThe destination path for the asset.

Returns

Asset

The screen texture asset.