• Load a gltf file from a url. This is the core method used by Needle Engine to load gltf files. All known extensions are registered here.

    Parameters

    • context: Context

      The current context

    • url: string

      The url to the gltf file

    • sourceId: string

      The source id of the gltf file - this is usually the url

    • seed: number | UIDProvider

      The seed for generating unique ids

    • Optional prog: ((ProgressEvent) => void)

      A progress callback

        • (ProgressEvent): void
        • Parameters

          • ProgressEvent: any

          Returns void

    Returns Promise<GLTF | undefined>

    The loaded gltf object

Generated using TypeDoc