Protected_The AssetManager this loader fetches/caches resources through. Private per instance unless
options.assetManager was passed -- never the deprecated process-wide singleton.
Protected_The base path for resource URLs.
Protected_Registers an event listener.
The event type.
The callback function.
Dispatches an event.
The event type.
Optional data associated with the event.
Loads a resource from the given URL.
The relative URL to the resource.
A promise resolving to the loaded resource.
Loads standalone animation clips from a .glb or .gltf file.
Removes a registered event listener.
The event type.
The callback function to remove.
Sets the base path for the loader.
The base path string.
this
StaticdecodeDecodes a data:...;base64,... URI into raw bytes -- public/static so callers that parse a
glTF JSON document themselves (ProjectBinding, rather than load()/_loadJson()) can
decode its embedded buffers before handing the document to _parse().
Protected StaticgetDerives the folder path (everything up to and including the last /)
from a URL, so sibling resources (materials, textures, buffers) can be
resolved relative to it.
The URL to derive the folder path from.
The folder path, including a trailing slash.
Loader for glTF 2.0 assets (.gltf and .glb).