Options
All
  • Public
  • Public/Protected
  • All
Menu

glTF validation

Hierarchy

  • GLTFValidation

Index

Constructors

Properties

Methods

Constructors

Properties

The configuration. Defaults to { url: "https://preview.babylonjs.com/gltf_validator.js" }.

Methods

  • ValidateAsync(data: string | ArrayBuffer, rootUrl: string, fileName: string, getExternalResource: (uri: string) => Promise<ArrayBuffer>): Promise<IGLTFValidationResults>
  • Validate a glTF asset using the glTF-Validator.

    Parameters

    • data: string | ArrayBuffer

      The JSON of a glTF or the array buffer of a binary glTF

    • rootUrl: string

      The root url for the glTF

    • fileName: string

      The file name for the glTF

    • getExternalResource: (uri: string) => Promise<ArrayBuffer>

      The callback to get external resources for the glTF validator

        • (uri: string): Promise<ArrayBuffer>
        • Parameters

          • uri: string

          Returns Promise<ArrayBuffer>

    Returns Promise<IGLTFValidationResults>

    A promise that resolves with the glTF validation results once complete

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Static property
  • Static method
  • Inherited constructor

Settings

Theme