Instantiate a new ModelLoader
an instance of SceneManager
an instance of ObservableManager
Release all resources held by ModelLoader
Import a glTF or glb file into the scene. Either a URL path to the file must be provided, or the base64 based string of a glb file (starts with 'data:').
URL path to the glTF or glb file, or base64 based string (starts with 'data:')
Optional
disableAnimation: booleanwhether disable animation of the loaded model (default: false)
Optional
modelName: stringif provided, set the model name
Optional
options: LoadGltfOptionsoptional config, LoadGltfOptions
A promise of Model
Responsible for loading models