Create a new asset container
A list of all animation data in this container
A list of all assets in this container
A mapping of asset IDs to assets in this container
A list of all materials in this container
A list of all meshes in this container
A list of all prefabs in this container
A list of all sounds in this container
A list of all textures in this container
Preload unbound animation keyframe data for later use.
The name of this animation
The keyframe data
Create a new box-shaped mesh.
The name to give to the asset.
The length of the box on the X axis.
The length of the box on the Y axis.
The length of the box on the Z axis.
Create a new capsule-shaped mesh.
The name to give to the asset.
The height of the capsule from tip to tip.
The thickness of the capsule.
The long axis of the capsule.
The number of longitudinal segments.
The number of latitudinal segments.
Create a new cylinder-shaped mesh.
The name to give to the asset.
The height of the cylinder.
The thickness of the cylinder.
The long axis of the cylinder.
The number of longitudinal segments.
Generate a new material
The new material's name
The initial material properties
Create a flat mesh on the X-Z plane.
The name to give to the asset.
The X-axis length of the plane.
The Z-axis length of the plane.
The number of X-axis segments.
The number of Z-axis segments.
Create a new mesh from the given primitive definition
The new mesh's name
A description of the desired mesh
Create a new sphere-shaped mesh.
The name to give to the asset.
The radius of the sphere.
The number of longitudinal segments.
The number of latitudinal segments.
Load an image file and generate a new texture asset
The new texture's name
The initial texture properties. The uri
property is required.
Preload a video stream and generate a new video stream asset
The new stream's name
The initial video stream properties. The uri
property is required.
Load the assets in a glTF file by URL, and this container with the result.
The URI to a glTF model.
The shape of the generated prefab collider.
A promise that resolves with the list of loaded assets.
Break references to all assets in the container, and unload them to free memory
The root object of the MRE SDK's asset system. Once you create an AssetContainer, you can create new materials, textures, or sounds from scratch, or load glTF files for their assets.