• 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

    • data: string | ArrayBuffer

      The gltf data as string or ArrayBuffer

    • path: string

      The path to the gltf file

    • seed: null | number | UIDProvider

      The seed for generating unique ids

    Returns Promise<GLTF | undefined>

    The loaded gltf object