Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Gltf2Importer

The glTF2 Importer class.

Hierarchy

  • Gltf2Importer

Index

Constructors

Methods

  • __containsFileName(optionsFiles: {}, filename: string): boolean
  • __getFullPathOfFileName(optionsFiles: {}, filename: string): undefined | string
  • _checkRnGltfLoaderOptionsExist(gltfModel: RnM2): boolean
  • Import glTF2 array buffer.

    Parameters

    • arrayBuffer: ArrayBuffer

      .gltf/.glb file in ArrayBuffer

    • otherFiles: GltfFileBuffers

      other resource files data in ArrayBuffers

    • Optional options: GltfLoadOption

      options for loading process (Optional)

    • Optional uri: string

      .gltf file's uri (Optional)

    Returns Promise<IResult<RnM2, undefined>>

    a glTF2 based JSON pre-processed

  • _loadDependenciesOfAccessors(gltfJson: RnM2): void
  • _loadDependenciesOfAnimations(gltfJson: RnM2): void
  • _loadDependenciesOfBufferViews(gltfJson: RnM2): void
  • _loadDependenciesOfJoints(gltfJson: RnM2): void
  • _loadDependenciesOfMaterials(gltfJson: RnM2): void
  • _loadDependenciesOfMeshes(gltfJson: RnM2): void
  • _loadDependenciesOfNodes(gltfJson: RnM2): void
  • _loadDependenciesOfScenes(gltfJson: RnM2): void
  • _loadDependenciesOfTextures(gltfJson: RnM2): void
  • _loadJsonContent(gltfJson: RnM2): void
  • _mergeExtendedJson(gltfJson: RnM2, extendedData: string | object | ArrayBuffer): void

Generated using TypeDoc