ThreePipe
    Preparing search index...

    Class GLTFLoader2

    Hierarchy

    Implements

    Index

    Constructors

    Properties

    importOptions?: ImportAddOptions
    isGLTFLoader2: boolean = true
    preparsers: GLTFPreparser[] = []

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

    CreateUniqueNames: boolean = true

    If true, the loader will create unique names for objects in the gltf file when multiple objects with the same name are found. This is useful when importing gltf files with multiple objects with the same name, and creating animations for them.

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

    Use MeshLine(an extension of three.js Line2) instead of default Line for lines. This allows changing line width and other properties like dashed.

    This is the default value for the flag, it can also be controlled by using the useMeshLines in the import options.

    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>