@onerjs/loaders 8.23.12 → 8.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -126,88 +126,106 @@ declare abstract class GLTFLoaderOptions {
126
126
  */
127
127
  abstract onParsed?: ((loaderData: IGLTFLoaderData) => void) | undefined;
128
128
  /**
129
- * The coordinate system mode. Defaults to AUTO.
129
+ * Defines if the loader should always compute the bounding boxes of meshes and not use the min/max values from the position accessor. Defaults to false.
130
130
  */
131
- coordinateSystemMode: GLTFLoaderCoordinateSystemMode;
131
+ alwaysComputeBoundingBox: boolean;
132
+ /**
133
+ * Defines if the loader should always compute the nearest common ancestor of the skeleton joints instead of using `skin.skeleton`. Defaults to false.
134
+ * Set this to true if loading assets with invalid `skin.skeleton` values.
135
+ */
136
+ alwaysComputeSkeletonRootNode: boolean;
132
137
  /**
133
138
  * The animation start mode. Defaults to FIRST.
134
139
  */
135
140
  animationStartMode: GLTFLoaderAnimationStartMode;
136
141
  /**
137
- * Defines if the loader should load node animations. Defaults to true.
138
- * NOTE: The animation of this node will still load if the node is also a joint of a skin and `loadSkins` is true.
142
+ * Defines if the loader should capture performance counters.
139
143
  */
140
- loadNodeAnimations: boolean;
144
+ abstract capturePerformanceCounters: boolean;
141
145
  /**
142
- * Defines if the loader should load skins. Defaults to true.
146
+ * Defines if the loader should compile materials before raising the success callback. Defaults to false.
143
147
  */
144
- loadSkins: boolean;
148
+ compileMaterials: boolean;
145
149
  /**
146
- * Defines if the loader should load morph targets. Defaults to true.
150
+ * Defines if the loader should compile shadow generators before raising the success callback. Defaults to false.
147
151
  */
148
- loadMorphTargets: boolean;
152
+ compileShadowGenerators: boolean;
149
153
  /**
150
- * Defines if the loader should compile materials before raising the success callback. Defaults to false.
154
+ * The coordinate system mode. Defaults to AUTO.
151
155
  */
152
- compileMaterials: boolean;
156
+ coordinateSystemMode: GLTFLoaderCoordinateSystemMode;
153
157
  /**
154
- * Defines if the loader should also compile materials with clip planes. Defaults to false.
158
+ * Defines if the loader should create instances when multiple glTF nodes point to the same glTF mesh. Defaults to true.
155
159
  */
156
- useClipPlane: boolean;
160
+ createInstances: boolean;
157
161
  /**
158
- * Defines if the loader should compile shadow generators before raising the success callback. Defaults to false.
162
+ * Defines the node to use as the root of the hierarchy when loading the scene (default: undefined). If not defined, a root node will be automatically created.
163
+ * You can also pass null if you don't want a root node to be created.
159
164
  */
160
- compileShadowGenerators: boolean;
165
+ customRootNode?: Nullable<TransformNode>;
161
166
  /**
162
- * Defines if the Alpha blended materials are only applied as coverage.
163
- * If false, (default) The luminance of each pixel will reduce its opacity to simulate the behaviour of most physical materials.
164
- * If true, no extra effects are applied to transparent pixels.
167
+ * Convert root node coordinate if not in rightHanded system
165
168
  */
166
- transparencyAsCoverage: boolean;
169
+ autoConvertRootNodeCoordinateSystem?: boolean;
167
170
  /**
168
- * Defines if the loader should use range requests when load binary glTF files from HTTP.
169
- * Enabling will disable offline support and glTF validator.
170
- * Defaults to false.
171
+ * Callback raised when the loader creates a mesh after parsing the glTF properties of the mesh.
172
+ * Note that the callback is called as soon as the mesh object is created, meaning some data may not have been setup yet for this mesh (vertex data, morph targets, material, ...)
171
173
  */
172
- useRangeRequests: boolean;
174
+ abstract onMeshLoaded?: ((mesh: AbstractMesh) => void) | undefined;
173
175
  /**
174
- * Defines if the loader should create instances when multiple glTF nodes point to the same glTF mesh. Defaults to true.
176
+ * Callback raised when the loader creates a skin after parsing the glTF properties of the skin node.
177
+ * @see https://doc.babylonjs.com/features/featuresDeepDive/importers/glTF/glTFSkinning#ignoring-the-transform-of-the-skinned-mesh
175
178
  */
176
- createInstances: boolean;
179
+ abstract onSkinLoaded?: ((node: TransformNode, skinnedNode: TransformNode) => void) | undefined;
177
180
  /**
178
- * Defines if the loader should always compute the bounding boxes of meshes and not use the min/max values from the position accessor. Defaults to false.
181
+ * Callback raised when the loader creates a texture after parsing the glTF properties of the texture.
179
182
  */
180
- alwaysComputeBoundingBox: boolean;
183
+ abstract onTextureLoaded?: ((texture: BaseTexture) => void) | undefined;
184
+ /**
185
+ * Callback raised when the loader creates a material after parsing the glTF properties of the material.
186
+ */
187
+ abstract onMaterialLoaded?: ((material: Material) => void) | undefined;
188
+ /**
189
+ * Callback raised when the loader creates a camera after parsing the glTF properties of the camera.
190
+ */
191
+ abstract onCameraLoaded?: ((camera: Camera) => void) | undefined;
192
+ /**
193
+ * Defines options for glTF extensions.
194
+ */
195
+ extensionOptions: {
196
+ [Extension in keyof GLTFLoaderExtensionOptions]?: {
197
+ [Option in keyof DefaultExtensionOptions<GLTFLoaderExtensionOptions[Extension]>]: DefaultExtensionOptions<GLTFLoaderExtensionOptions[Extension]>[Option];
198
+ };
199
+ };
181
200
  /**
182
201
  * If true, load all materials defined in the file, even if not used by any mesh. Defaults to false.
183
202
  */
184
203
  loadAllMaterials: boolean;
185
204
  /**
186
- * If true, load only the materials defined in the file. Defaults to false.
205
+ * Defines if the loader should load morph targets. Defaults to true.
187
206
  */
188
- loadOnlyMaterials: boolean;
207
+ loadMorphTargets: boolean;
189
208
  /**
190
- * If true, do not load any materials defined in the file. Defaults to false.
209
+ * Defines if the loader should load node animations. Defaults to true.
210
+ * NOTE: The animation of this node will still load if the node is also a joint of a skin and `loadSkins` is true.
191
211
  */
192
- skipMaterials: boolean;
212
+ loadNodeAnimations: boolean;
193
213
  /**
194
- * If true, load the color (gamma encoded) textures into sRGB buffers (if supported by the GPU), which will yield more accurate results when sampling the texture. Defaults to true.
214
+ * If true, load only the materials defined in the file. Defaults to false.
195
215
  */
196
- useSRGBBuffers: boolean;
216
+ loadOnlyMaterials: boolean;
197
217
  /**
198
- * When loading glTF animations, which are defined in seconds, target them to this FPS. Defaults to 60.
218
+ * Defines if the loader should load skins. Defaults to true.
199
219
  */
200
- targetFps: number;
220
+ loadSkins: boolean;
201
221
  /**
202
- * Defines if the loader should always compute the nearest common ancestor of the skeleton joints instead of using `skin.skeleton`. Defaults to false.
203
- * Set this to true if loading assets with invalid `skin.skeleton` values.
222
+ * If true, enable logging for the loader. Defaults to false.
204
223
  */
205
- alwaysComputeSkeletonRootNode: boolean;
224
+ abstract loggingEnabled: boolean;
206
225
  /**
207
- * If true, the loader will derive the name for Babylon textures from the glTF texture name, image name, or image url. Defaults to false.
208
- * Note that it is possible for multiple Babylon textures to share the same name when the Babylon textures load from the same glTF texture or image.
226
+ * Callback raised after the asset is validated.
209
227
  */
210
- useGltfTextureNames: boolean;
228
+ abstract onValidated?: (results: GLTF2.IGLTFValidationResults) => void;
211
229
  /**
212
230
  * Function called before loading a url referenced by the asset.
213
231
  * @param url url referenced by the asset
@@ -215,44 +233,42 @@ declare abstract class GLTFLoaderOptions {
215
233
  */
216
234
  preprocessUrlAsync: (url: string) => Promise<string>;
217
235
  /**
218
- * Defines the node to use as the root of the hierarchy when loading the scene (default: undefined). If not defined, a root node will be automatically created.
219
- * You can also pass null if you don't want a root node to be created.
236
+ * If true, do not load any materials defined in the file. Defaults to false.
220
237
  */
221
- customRootNode?: Nullable<TransformNode>;
238
+ skipMaterials: boolean;
222
239
  /**
223
- * Convert root node coordinate if not in rightHanded system
240
+ * When loading glTF animations, which are defined in seconds, target them to this FPS. Defaults to 60.
224
241
  */
225
- autoConvertRootNodeCoordinateSystem?: boolean;
242
+ targetFps: number;
226
243
  /**
227
- * Callback raised when the loader creates a mesh after parsing the glTF properties of the mesh.
228
- * Note that the callback is called as soon as the mesh object is created, meaning some data may not have been setup yet for this mesh (vertex data, morph targets, material, ...)
244
+ * Defines if the Alpha blended materials are only applied as coverage.
245
+ * If false, (default) The luminance of each pixel will reduce its opacity to simulate the behaviour of most physical materials.
246
+ * If true, no extra effects are applied to transparent pixels.
229
247
  */
230
- abstract onMeshLoaded?: ((mesh: AbstractMesh) => void) | undefined;
248
+ transparencyAsCoverage: boolean;
231
249
  /**
232
- * Callback raised when the loader creates a skin after parsing the glTF properties of the skin node.
233
- * @see https://doc.babylonjs.com/features/featuresDeepDive/importers/glTF/glTFSkinning#ignoring-the-transform-of-the-skinned-mesh
250
+ * Defines if the loader should also compile materials with clip planes. Defaults to false.
234
251
  */
235
- abstract onSkinLoaded?: ((node: TransformNode, skinnedNode: TransformNode) => void) | undefined;
252
+ useClipPlane: boolean;
236
253
  /**
237
- * Callback raised when the loader creates a texture after parsing the glTF properties of the texture.
254
+ * If true, the loader will derive the name for Babylon textures from the glTF texture name, image name, or image url. Defaults to false.
255
+ * Note that it is possible for multiple Babylon textures to share the same name when the Babylon textures load from the same glTF texture or image.
238
256
  */
239
- abstract onTextureLoaded?: ((texture: BaseTexture) => void) | undefined;
257
+ useGltfTextureNames: boolean;
240
258
  /**
241
- * Callback raised when the loader creates a material after parsing the glTF properties of the material.
259
+ * Defines if the loader should use range requests when load binary glTF files from HTTP.
260
+ * Enabling will disable offline support and glTF validator.
261
+ * Defaults to false.
242
262
  */
243
- abstract onMaterialLoaded?: ((material: Material) => void) | undefined;
263
+ useRangeRequests: boolean;
244
264
  /**
245
- * Callback raised when the loader creates a camera after parsing the glTF properties of the camera.
265
+ * If true, load the color (gamma encoded) textures into sRGB buffers (if supported by the GPU), which will yield more accurate results when sampling the texture. Defaults to true.
246
266
  */
247
- abstract onCameraLoaded?: ((camera: Camera) => void) | undefined;
267
+ useSRGBBuffers: boolean;
248
268
  /**
249
- * Defines options for glTF extensions.
269
+ * Defines if the loader should validate the asset.
250
270
  */
251
- extensionOptions: {
252
- [Extension in keyof GLTFLoaderExtensionOptions]?: {
253
- [Option in keyof DefaultExtensionOptions<GLTFLoaderExtensionOptions[Extension]>]: DefaultExtensionOptions<GLTFLoaderExtensionOptions[Extension]>[Option];
254
- };
255
- };
271
+ validate: boolean;
256
272
  }
257
273
  /**
258
274
  * File loader for loading glTF files into a scene.
@@ -394,17 +410,13 @@ export declare class GLTFFileLoader extends GLTFLoaderOptions implements IDispos
394
410
  */
395
411
  get capturePerformanceCounters(): boolean;
396
412
  set capturePerformanceCounters(value: boolean);
397
- /**
398
- * Defines if the loader should validate the asset.
399
- */
400
- validate: boolean;
401
413
  /**
402
414
  * Observable raised after validation when validate is set to true. The event data is the result of the validation.
403
415
  */
404
416
  readonly onValidatedObservable: Observable<GLTF2.IGLTFValidationResults>;
405
417
  private _onValidatedObserver;
406
418
  /**
407
- * Callback raised after a loader extension is created.
419
+ * Callback raised after the asset is validated.
408
420
  */
409
421
  set onValidated(callback: (results: GLTF2.IGLTFValidationResults) => void);
410
422
  private _loader;
@@ -86,130 +86,138 @@ class GLTFLoaderOptions {
86
86
  // V2 options
87
87
  // ----------
88
88
  /**
89
- * The coordinate system mode. Defaults to AUTO.
90
- */
91
- this.coordinateSystemMode = GLTFLoaderCoordinateSystemMode.AUTO;
92
- /**
93
- * The animation start mode. Defaults to FIRST.
94
- */
95
- this.animationStartMode = GLTFLoaderAnimationStartMode.FIRST;
96
- /**
97
- * Defines if the loader should load node animations. Defaults to true.
98
- * NOTE: The animation of this node will still load if the node is also a joint of a skin and `loadSkins` is true.
89
+ * Defines if the loader should always compute the bounding boxes of meshes and not use the min/max values from the position accessor. Defaults to false.
99
90
  */
100
- this.loadNodeAnimations = true;
91
+ this.alwaysComputeBoundingBox = false;
101
92
  /**
102
- * Defines if the loader should load skins. Defaults to true.
93
+ * Defines if the loader should always compute the nearest common ancestor of the skeleton joints instead of using `skin.skeleton`. Defaults to false.
94
+ * Set this to true if loading assets with invalid `skin.skeleton` values.
103
95
  */
104
- this.loadSkins = true;
96
+ this.alwaysComputeSkeletonRootNode = false;
105
97
  /**
106
- * Defines if the loader should load morph targets. Defaults to true.
98
+ * The animation start mode. Defaults to FIRST.
107
99
  */
108
- this.loadMorphTargets = true;
100
+ this.animationStartMode = GLTFLoaderAnimationStartMode.FIRST;
109
101
  /**
110
102
  * Defines if the loader should compile materials before raising the success callback. Defaults to false.
111
103
  */
112
104
  this.compileMaterials = false;
113
- /**
114
- * Defines if the loader should also compile materials with clip planes. Defaults to false.
115
- */
116
- this.useClipPlane = false;
117
105
  /**
118
106
  * Defines if the loader should compile shadow generators before raising the success callback. Defaults to false.
119
107
  */
120
108
  this.compileShadowGenerators = false;
121
109
  /**
122
- * Defines if the Alpha blended materials are only applied as coverage.
123
- * If false, (default) The luminance of each pixel will reduce its opacity to simulate the behaviour of most physical materials.
124
- * If true, no extra effects are applied to transparent pixels.
125
- */
126
- this.transparencyAsCoverage = false;
127
- /**
128
- * Defines if the loader should use range requests when load binary glTF files from HTTP.
129
- * Enabling will disable offline support and glTF validator.
130
- * Defaults to false.
110
+ * The coordinate system mode. Defaults to AUTO.
131
111
  */
132
- this.useRangeRequests = false;
112
+ this.coordinateSystemMode = GLTFLoaderCoordinateSystemMode.AUTO;
133
113
  /**
134
114
  * Defines if the loader should create instances when multiple glTF nodes point to the same glTF mesh. Defaults to true.
135
115
  */
136
116
  this.createInstances = true;
137
117
  /**
138
- * Defines if the loader should always compute the bounding boxes of meshes and not use the min/max values from the position accessor. Defaults to false.
118
+ * Defines options for glTF extensions.
139
119
  */
140
- this.alwaysComputeBoundingBox = false;
120
+ this.extensionOptions = {};
141
121
  /**
142
122
  * If true, load all materials defined in the file, even if not used by any mesh. Defaults to false.
143
123
  */
144
124
  this.loadAllMaterials = false;
125
+ /**
126
+ * Defines if the loader should load morph targets. Defaults to true.
127
+ */
128
+ this.loadMorphTargets = true;
129
+ /**
130
+ * Defines if the loader should load node animations. Defaults to true.
131
+ * NOTE: The animation of this node will still load if the node is also a joint of a skin and `loadSkins` is true.
132
+ */
133
+ this.loadNodeAnimations = true;
145
134
  /**
146
135
  * If true, load only the materials defined in the file. Defaults to false.
147
136
  */
148
137
  this.loadOnlyMaterials = false;
149
138
  /**
150
- * If true, do not load any materials defined in the file. Defaults to false.
139
+ * Defines if the loader should load skins. Defaults to true.
151
140
  */
152
- this.skipMaterials = false;
141
+ this.loadSkins = true;
153
142
  /**
154
- * If true, load the color (gamma encoded) textures into sRGB buffers (if supported by the GPU), which will yield more accurate results when sampling the texture. Defaults to true.
143
+ * Function called before loading a url referenced by the asset.
144
+ * @param url url referenced by the asset
145
+ * @returns Async url to load
155
146
  */
156
- this.useSRGBBuffers = true;
147
+ this.preprocessUrlAsync = (url) => Promise.resolve(url);
148
+ /**
149
+ * If true, do not load any materials defined in the file. Defaults to false.
150
+ */
151
+ this.skipMaterials = false;
157
152
  /**
158
153
  * When loading glTF animations, which are defined in seconds, target them to this FPS. Defaults to 60.
159
154
  */
160
155
  this.targetFps = 60;
161
156
  /**
162
- * Defines if the loader should always compute the nearest common ancestor of the skeleton joints instead of using `skin.skeleton`. Defaults to false.
163
- * Set this to true if loading assets with invalid `skin.skeleton` values.
157
+ * Defines if the Alpha blended materials are only applied as coverage.
158
+ * If false, (default) The luminance of each pixel will reduce its opacity to simulate the behaviour of most physical materials.
159
+ * If true, no extra effects are applied to transparent pixels.
164
160
  */
165
- this.alwaysComputeSkeletonRootNode = false;
161
+ this.transparencyAsCoverage = false;
162
+ /**
163
+ * Defines if the loader should also compile materials with clip planes. Defaults to false.
164
+ */
165
+ this.useClipPlane = false;
166
166
  /**
167
167
  * If true, the loader will derive the name for Babylon textures from the glTF texture name, image name, or image url. Defaults to false.
168
168
  * Note that it is possible for multiple Babylon textures to share the same name when the Babylon textures load from the same glTF texture or image.
169
169
  */
170
170
  this.useGltfTextureNames = false;
171
171
  /**
172
- * Function called before loading a url referenced by the asset.
173
- * @param url url referenced by the asset
174
- * @returns Async url to load
172
+ * Defines if the loader should use range requests when load binary glTF files from HTTP.
173
+ * Enabling will disable offline support and glTF validator.
174
+ * Defaults to false.
175
175
  */
176
- this.preprocessUrlAsync = (url) => Promise.resolve(url);
176
+ this.useRangeRequests = false;
177
177
  /**
178
- * Defines options for glTF extensions.
178
+ * If true, load the color (gamma encoded) textures into sRGB buffers (if supported by the GPU), which will yield more accurate results when sampling the texture. Defaults to true.
179
179
  */
180
- this.extensionOptions = {};
180
+ this.useSRGBBuffers = true;
181
+ /**
182
+ * Defines if the loader should validate the asset.
183
+ */
184
+ this.validate = false;
181
185
  }
182
186
  // eslint-disable-next-line babylonjs/available
183
187
  copyFrom(options) {
184
188
  if (options) {
185
- this.onParsed = options.onParsed;
186
- this.coordinateSystemMode = options.coordinateSystemMode ?? this.coordinateSystemMode;
189
+ this.alwaysComputeBoundingBox = options.alwaysComputeBoundingBox ?? this.alwaysComputeBoundingBox;
190
+ this.alwaysComputeSkeletonRootNode = options.alwaysComputeSkeletonRootNode ?? this.alwaysComputeSkeletonRootNode;
187
191
  this.animationStartMode = options.animationStartMode ?? this.animationStartMode;
188
- this.loadNodeAnimations = options.loadNodeAnimations ?? this.loadNodeAnimations;
189
- this.loadSkins = options.loadSkins ?? this.loadSkins;
190
- this.loadMorphTargets = options.loadMorphTargets ?? this.loadMorphTargets;
192
+ this.capturePerformanceCounters = options.capturePerformanceCounters ?? this.capturePerformanceCounters;
191
193
  this.compileMaterials = options.compileMaterials ?? this.compileMaterials;
192
- this.useClipPlane = options.useClipPlane ?? this.useClipPlane;
193
194
  this.compileShadowGenerators = options.compileShadowGenerators ?? this.compileShadowGenerators;
194
- this.transparencyAsCoverage = options.transparencyAsCoverage ?? this.transparencyAsCoverage;
195
- this.useRangeRequests = options.useRangeRequests ?? this.useRangeRequests;
195
+ this.coordinateSystemMode = options.coordinateSystemMode ?? this.coordinateSystemMode;
196
196
  this.createInstances = options.createInstances ?? this.createInstances;
197
- this.alwaysComputeBoundingBox = options.alwaysComputeBoundingBox ?? this.alwaysComputeBoundingBox;
197
+ this.customRootNode = options.customRootNode;
198
+ this.extensionOptions = options.extensionOptions ?? this.extensionOptions;
198
199
  this.loadAllMaterials = options.loadAllMaterials ?? this.loadAllMaterials;
200
+ this.loadMorphTargets = options.loadMorphTargets ?? this.loadMorphTargets;
201
+ this.loadNodeAnimations = options.loadNodeAnimations ?? this.loadNodeAnimations;
199
202
  this.loadOnlyMaterials = options.loadOnlyMaterials ?? this.loadOnlyMaterials;
200
- this.skipMaterials = options.skipMaterials ?? this.skipMaterials;
201
- this.useSRGBBuffers = options.useSRGBBuffers ?? this.useSRGBBuffers;
202
- this.targetFps = options.targetFps ?? this.targetFps;
203
- this.alwaysComputeSkeletonRootNode = options.alwaysComputeSkeletonRootNode ?? this.alwaysComputeSkeletonRootNode;
204
- this.useGltfTextureNames = options.useGltfTextureNames ?? this.useGltfTextureNames;
205
- this.preprocessUrlAsync = options.preprocessUrlAsync ?? this.preprocessUrlAsync;
206
- this.customRootNode = options.customRootNode;
203
+ this.loadSkins = options.loadSkins ?? this.loadSkins;
204
+ this.loggingEnabled = options.loggingEnabled ?? this.loggingEnabled;
205
+ this.onCameraLoaded = options.onCameraLoaded;
206
+ this.onMaterialLoaded = options.onMaterialLoaded;
207
207
  this.onMeshLoaded = options.onMeshLoaded;
208
+ this.onParsed = options.onParsed;
208
209
  this.onSkinLoaded = options.onSkinLoaded;
209
210
  this.onTextureLoaded = options.onTextureLoaded;
210
- this.onMaterialLoaded = options.onMaterialLoaded;
211
- this.onCameraLoaded = options.onCameraLoaded;
212
- this.extensionOptions = options.extensionOptions ?? this.extensionOptions;
211
+ this.onValidated = options.onValidated;
212
+ this.preprocessUrlAsync = options.preprocessUrlAsync ?? this.preprocessUrlAsync;
213
+ this.skipMaterials = options.skipMaterials ?? this.skipMaterials;
214
+ this.targetFps = options.targetFps ?? this.targetFps;
215
+ this.transparencyAsCoverage = options.transparencyAsCoverage ?? this.transparencyAsCoverage;
216
+ this.useClipPlane = options.useClipPlane ?? this.useClipPlane;
217
+ this.useGltfTextureNames = options.useGltfTextureNames ?? this.useGltfTextureNames;
218
+ this.useRangeRequests = options.useRangeRequests ?? this.useRangeRequests;
219
+ this.useSRGBBuffers = options.useSRGBBuffers ?? this.useSRGBBuffers;
220
+ this.validate = options.validate ?? this.validate;
213
221
  }
214
222
  }
215
223
  }
@@ -276,10 +284,6 @@ export class GLTFFileLoader extends GLTFLoaderOptions {
276
284
  * Set additional options for a loader extension in this event.
277
285
  */
278
286
  this.onExtensionLoadedObservable = new Observable();
279
- /**
280
- * Defines if the loader should validate the asset.
281
- */
282
- this.validate = false;
283
287
  /**
284
288
  * Observable raised after validation when validate is set to true. The event data is the result of the validation.
285
289
  */
@@ -453,7 +457,7 @@ export class GLTFFileLoader extends GLTFLoaderOptions {
453
457
  }
454
458
  }
455
459
  /**
456
- * Callback raised after a loader extension is created.
460
+ * Callback raised after the asset is validated.
457
461
  */
458
462
  set onValidated(callback) {
459
463
  if (this._onValidatedObserver) {