The name of the Asset in Lens Studio.
ReadonlyuniqueReturns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
Downloads the remote image resource from the DynamicResource object and loads the resource as AudioTrackAsset.
// Print the texture's height, width
// Change the texture's name and print it out
//@input Asset.Texture texture
print("Width = " + script.texture.getWidth().toString());
print("Height = " + script.texture.getHeight().toString());
// Takes a screenshot of device camera input and applies it to meshVisual
//@input Asset.Texture deviceCameraTexture
//@input Component.MeshVisual meshVisual
var textureCopy = script.deviceCameraTexture.copyFrame();
script.meshVisual.mainPass.baseTex = textureCopy;
Downloads a remote 3D GLTF file given a DynamicResource.
Downloads the remote image resource from the DynamicResource object and loads the resource as an Image Texture.
Downloads the remote asset resource from the DynamicResource object and loads the resource as an Asset.
Downloads the remote image resource from the DynamicResource object and loads the resource as a VideoTextureProvider.
Allows the Lens to download and integrate remote media content such as 3D GLTF assets, images, audio tracks, and video textures into Lenses.
Example