Class GLTFValidation
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 Validate AsyncSearch playground for ValidateAsync
-
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
-
-
Parameters
-
uri: string
Returns Promise<ArrayBuffer>
-
-
-
Returns Promise<IGLTFValidationResults>
A promise that resolves with the glTF validation results once complete
-
glTF validation