extendsLoaderBase
PlayCanvas loader for GLTF and GLB tile content. The already downloaded buffer is passed to the
engine as the contents of a container asset, so the engine's glTF parser and extensions are
used without fetching the file again.
Properties
app: AppBase
The PlayCanvas application the content is created for.
assetOptions: Object | null
Options passed to the container asset, such as glTF parser callbacks.
renderOptions: Object | null
Options passed to the render components created for the content, such as castShadows.
Methods
new GLTFLoader(
// The PlayCanvas application.
app: AppBase
)async parse(
// The raw GLTF or GLB file data.
buffer: ArrayBuffer,
// The URL of the content, used to resolve relative resources.
url: string
): Promise<{scene: Entity, container: Asset, gltf: Object, asset: Object}>Inherited
From LoaderBase
- Properties