Class GLTFLoader2

Hierarchy

Implements

Constructors

Properties

isGLTFLoader2: boolean = true
preparsers: GLTFPreparser[] = []

Preparsers are run on the arraybuffer/string before parsing to read the glb/gltf data

ImportExtensions: (parser: GLTFParser) => GLTFLoaderPlugin[] = ...

Methods

  • Parameters

    • data: string | ArrayBuffer
    • path: string
    • onLoad: (gltf: GLTF) => void
    • OptionalonError: (event: ErrorEvent) => void
    • Optionalurl: string

    Returns void

  • Parameters

    • data: string | ArrayBuffer
    • path: string

    Returns Promise<string | ArrayBuffer>