Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GLTFValidation

glTF validation

Hierarchy

  • GLTFValidation

Index

Properties

Methods

Properties

Static ConfigurationSearch playground for Configuration

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

Methods

Static ValidateAsyncSearch playground for ValidateAsync

  • 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
  • Inherited property
  • Inherited method
  • Static property
  • Static method