GLTFValidation

glTF validation

Hierarchy

  • GLTFValidation

Index

Properties

Methods

Properties

Static Configuration

Find examples in Playground

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

Methods

Static ValidateAsync

Find examples in Playground
  • ValidateAsync(data: string | ArrayBuffer, rootUrl: string, fileName: string, getExternalResource: function): 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: function

      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

Generated using TypeDoc