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) => GLTFLoaderPlugin)[] = ...

Type declaration

Methods

  • Parameters

    • data: string | ArrayBuffer
    • path: string
    • onLoad: ((gltf) => void)
        • (gltf): void
        • Parameters

          Returns void

    • Optional onError: ((event) => void)
        • (event): void
        • Parameters

          • event: ErrorEvent

          Returns void

    • Optional url: string

    Returns void

Generated using TypeDoc