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.
Download the file from the DynamicResource object and loads the resource as a GaussianSplattingAsset. Supported file formats: .ply, .gs, .gsaf, .gfrosting
// @input Asset.RemoteMediaModule mediaModule
// @input string url
let gsVisual = script.getSceneObject().getComponent("Component.GaussianSplattingVisual")
function success(gsa) { gsVisual.asset = gsa }
function fail(msg) { print('Error: ' + msg) }
const resource = DynamicResource.createWithResourceId(script.url)
script.mediaModule.loadResourceAsGaussianSplattingAsset(resource, success, fail)
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.
Uploads a Texture as an image and returns a DynamicResource on success. Use ImageUploadOptions to configure the compression method, quality, and alpha channel inclusion.
OptionaluploadOptions: ImageUploadOptions
Allows the Lens to download and integrate remote media content such as 3D GLTF assets, images, audio tracks, and video textures into Lenses.
Example