Responsible for loading models

Implements

  • IDisposable

Constructors

Methods

  • 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:').

    Parameters

    • url: string

      URL path to the glTF or glb file, or base64 based string (starts with 'data:')

    • OptionaldisableAnimation: boolean

      whether disable animation of the loaded model (default: false)

    • OptionalmodelName: string

      if provided, set the model name

    • Optionaloptions: LoadGltfOptions

      optional config, LoadGltfOptions

    Returns Promise<Model>

    A promise of Model

    Error if no glTF content or url provided

""