@babylonjs/core 7.51.2 → 7.52.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.
- package/Audio/Interfaces/IAudioEngineOptions.d.ts +2 -0
- package/Audio/Interfaces/IAudioEngineOptions.js.map +1 -1
- package/AudioV2/abstractAudio/abstractAudioBus.d.ts +22 -0
- package/AudioV2/abstractAudio/abstractAudioBus.js +35 -0
- package/AudioV2/abstractAudio/abstractAudioBus.js.map +1 -0
- package/AudioV2/abstractAudio/abstractAudioNode.d.ts +99 -0
- package/AudioV2/abstractAudio/abstractAudioNode.js +149 -0
- package/AudioV2/abstractAudio/abstractAudioNode.js.map +1 -0
- package/AudioV2/abstractAudio/abstractSound.d.ts +152 -0
- package/AudioV2/abstractAudio/abstractSound.js +202 -0
- package/AudioV2/abstractAudio/abstractSound.js.map +1 -0
- package/AudioV2/abstractAudio/abstractSoundInstance.d.ts +34 -0
- package/AudioV2/abstractAudio/abstractSoundInstance.js +35 -0
- package/AudioV2/abstractAudio/abstractSoundInstance.js.map +1 -0
- package/AudioV2/abstractAudio/audioBus.d.ts +48 -0
- package/AudioV2/abstractAudio/audioBus.js +53 -0
- package/AudioV2/abstractAudio/audioBus.js.map +1 -0
- package/AudioV2/abstractAudio/audioEngineV2.d.ts +193 -0
- package/AudioV2/abstractAudio/audioEngineV2.js +155 -0
- package/AudioV2/abstractAudio/audioEngineV2.js.map +1 -0
- package/AudioV2/abstractAudio/index.d.ts +10 -0
- package/AudioV2/abstractAudio/index.js +12 -0
- package/AudioV2/abstractAudio/index.js.map +1 -0
- package/AudioV2/abstractAudio/mainAudioBus.d.ts +22 -0
- package/AudioV2/abstractAudio/mainAudioBus.js +18 -0
- package/AudioV2/abstractAudio/mainAudioBus.js.map +1 -0
- package/AudioV2/abstractAudio/mainAudioOut.d.ts +13 -0
- package/AudioV2/abstractAudio/mainAudioOut.js +15 -0
- package/AudioV2/abstractAudio/mainAudioOut.js.map +1 -0
- package/AudioV2/abstractAudio/staticSound.d.ts +134 -0
- package/AudioV2/abstractAudio/staticSound.js +113 -0
- package/AudioV2/abstractAudio/staticSound.js.map +1 -0
- package/AudioV2/abstractAudio/staticSoundBuffer.d.ts +46 -0
- package/AudioV2/abstractAudio/staticSoundBuffer.js +17 -0
- package/AudioV2/abstractAudio/staticSoundBuffer.js.map +1 -0
- package/AudioV2/abstractAudio/staticSoundInstance.d.ts +15 -0
- package/AudioV2/abstractAudio/staticSoundInstance.js +5 -0
- package/AudioV2/abstractAudio/staticSoundInstance.js.map +1 -0
- package/AudioV2/abstractAudio/streamingSound.d.ts +77 -0
- package/AudioV2/abstractAudio/streamingSound.js +109 -0
- package/AudioV2/abstractAudio/streamingSound.js.map +1 -0
- package/AudioV2/abstractAudio/streamingSoundInstance.d.ts +25 -0
- package/AudioV2/abstractAudio/streamingSoundInstance.js +29 -0
- package/AudioV2/abstractAudio/streamingSoundInstance.js.map +1 -0
- package/AudioV2/abstractAudio/subNodes/abstractAudioSubGraph.d.ts +53 -0
- package/AudioV2/abstractAudio/subNodes/abstractAudioSubGraph.js +97 -0
- package/AudioV2/abstractAudio/subNodes/abstractAudioSubGraph.js.map +1 -0
- package/AudioV2/abstractAudio/subNodes/abstractAudioSubNode.d.ts +13 -0
- package/AudioV2/abstractAudio/subNodes/abstractAudioSubNode.js +33 -0
- package/AudioV2/abstractAudio/subNodes/abstractAudioSubNode.js.map +1 -0
- package/AudioV2/abstractAudio/subNodes/audioSubNode.d.ts +6 -0
- package/AudioV2/abstractAudio/subNodes/audioSubNode.js +8 -0
- package/AudioV2/abstractAudio/subNodes/audioSubNode.js.map +1 -0
- package/AudioV2/abstractAudio/subNodes/spatialAudioSubNode.d.ts +31 -0
- package/AudioV2/abstractAudio/subNodes/spatialAudioSubNode.js +46 -0
- package/AudioV2/abstractAudio/subNodes/spatialAudioSubNode.js.map +1 -0
- package/AudioV2/abstractAudio/subNodes/stereoAudioSubNode.d.ts +19 -0
- package/AudioV2/abstractAudio/subNodes/stereoAudioSubNode.js +27 -0
- package/AudioV2/abstractAudio/subNodes/stereoAudioSubNode.js.map +1 -0
- package/AudioV2/abstractAudio/subNodes/volumeAudioSubNode.d.ts +28 -0
- package/AudioV2/abstractAudio/subNodes/volumeAudioSubNode.js +24 -0
- package/AudioV2/abstractAudio/subNodes/volumeAudioSubNode.js.map +1 -0
- package/AudioV2/abstractAudio/subProperties/abstractSpatialAudio.d.ts +187 -0
- package/AudioV2/abstractAudio/subProperties/abstractSpatialAudio.js +41 -0
- package/AudioV2/abstractAudio/subProperties/abstractSpatialAudio.js.map +1 -0
- package/AudioV2/abstractAudio/subProperties/abstractSpatialAudioListener.d.ts +59 -0
- package/AudioV2/abstractAudio/subProperties/abstractSpatialAudioListener.js +21 -0
- package/AudioV2/abstractAudio/subProperties/abstractSpatialAudioListener.js.map +1 -0
- package/AudioV2/abstractAudio/subProperties/abstractStereoAudio.d.ts +38 -0
- package/AudioV2/abstractAudio/subProperties/abstractStereoAudio.js +18 -0
- package/AudioV2/abstractAudio/subProperties/abstractStereoAudio.js.map +1 -0
- package/AudioV2/abstractAudio/subProperties/index.d.ts +3 -0
- package/AudioV2/abstractAudio/subProperties/index.js +4 -0
- package/AudioV2/abstractAudio/subProperties/index.js.map +1 -0
- package/AudioV2/abstractAudio/subProperties/spatialAudio.d.ts +49 -0
- package/AudioV2/abstractAudio/subProperties/spatialAudio.js +129 -0
- package/AudioV2/abstractAudio/subProperties/spatialAudio.js.map +1 -0
- package/AudioV2/abstractAudio/subProperties/spatialAudioListener.d.ts +9 -0
- package/AudioV2/abstractAudio/subProperties/spatialAudioListener.js +22 -0
- package/AudioV2/abstractAudio/subProperties/spatialAudioListener.js.map +1 -0
- package/AudioV2/abstractAudio/subProperties/stereoAudio.d.ts +11 -0
- package/AudioV2/abstractAudio/subProperties/stereoAudio.js +18 -0
- package/AudioV2/abstractAudio/subProperties/stereoAudio.js.map +1 -0
- package/AudioV2/audioUtils.d.ts +3 -0
- package/AudioV2/audioUtils.js +6 -0
- package/AudioV2/audioUtils.js.map +1 -0
- package/AudioV2/index.d.ts +3 -0
- package/AudioV2/index.js +5 -0
- package/AudioV2/index.js.map +1 -0
- package/AudioV2/soundState.d.ts +29 -0
- package/AudioV2/soundState.js +31 -0
- package/AudioV2/soundState.js.map +1 -0
- package/AudioV2/webAudio/index.d.ts +5 -0
- package/AudioV2/webAudio/index.js +6 -0
- package/AudioV2/webAudio/index.js.map +1 -0
- package/AudioV2/webAudio/subNodes/spatialWebAudioSubNode.d.ts +59 -0
- package/AudioV2/webAudio/subNodes/spatialWebAudioSubNode.js +156 -0
- package/AudioV2/webAudio/subNodes/spatialWebAudioSubNode.js.map +1 -0
- package/AudioV2/webAudio/subNodes/stereoWebAudioSubNode.d.ts +24 -0
- package/AudioV2/webAudio/subNodes/stereoWebAudioSubNode.js +55 -0
- package/AudioV2/webAudio/subNodes/stereoWebAudioSubNode.js.map +1 -0
- package/AudioV2/webAudio/subNodes/volumeWebAudioSubNode.d.ts +24 -0
- package/AudioV2/webAudio/subNodes/volumeWebAudioSubNode.js +55 -0
- package/AudioV2/webAudio/subNodes/volumeWebAudioSubNode.js.map +1 -0
- package/AudioV2/webAudio/subNodes/webAudioBaseSubGraph.d.ts +26 -0
- package/AudioV2/webAudio/subNodes/webAudioBaseSubGraph.js +54 -0
- package/AudioV2/webAudio/subNodes/webAudioBaseSubGraph.js.map +1 -0
- package/AudioV2/webAudio/subNodes/webAudioBusAndSoundSubGraph.d.ts +21 -0
- package/AudioV2/webAudio/subNodes/webAudioBusAndSoundSubGraph.js +112 -0
- package/AudioV2/webAudio/subNodes/webAudioBusAndSoundSubGraph.js.map +1 -0
- package/AudioV2/webAudio/subProperties/spatialWebAudio.d.ts +10 -0
- package/AudioV2/webAudio/subProperties/spatialWebAudio.js +26 -0
- package/AudioV2/webAudio/subProperties/spatialWebAudio.js.map +1 -0
- package/AudioV2/webAudio/subProperties/spatialWebAudioListener.d.ts +4 -0
- package/AudioV2/webAudio/subProperties/spatialWebAudioListener.js +108 -0
- package/AudioV2/webAudio/subProperties/spatialWebAudioListener.js.map +1 -0
- package/AudioV2/webAudio/webAudioBus.d.ts +35 -0
- package/AudioV2/webAudio/webAudioBus.js +63 -0
- package/AudioV2/webAudio/webAudioBus.js.map +1 -0
- package/AudioV2/webAudio/webAudioEngine.d.ts +110 -0
- package/AudioV2/webAudio/webAudioEngine.js +227 -0
- package/AudioV2/webAudio/webAudioEngine.js.map +1 -0
- package/AudioV2/webAudio/webAudioMainBus.d.ts +29 -0
- package/AudioV2/webAudio/webAudioMainBus.js +64 -0
- package/AudioV2/webAudio/webAudioMainBus.js.map +1 -0
- package/AudioV2/webAudio/webAudioMainOut.d.ts +20 -0
- package/AudioV2/webAudio/webAudioMainOut.js +35 -0
- package/AudioV2/webAudio/webAudioMainOut.js.map +1 -0
- package/AudioV2/webAudio/webAudioNode.d.ts +24 -0
- package/AudioV2/webAudio/webAudioNode.js +2 -0
- package/AudioV2/webAudio/webAudioNode.js.map +1 -0
- package/AudioV2/webAudio/webAudioStaticSound.d.ts +106 -0
- package/AudioV2/webAudio/webAudioStaticSound.js +368 -0
- package/AudioV2/webAudio/webAudioStaticSound.js.map +1 -0
- package/AudioV2/webAudio/webAudioStreamingSound.d.ts +94 -0
- package/AudioV2/webAudio/webAudioStreamingSound.js +358 -0
- package/AudioV2/webAudio/webAudioStreamingSound.js.map +1 -0
- package/Engines/ICanvas.d.ts +96 -1
- package/Engines/ICanvas.js.map +1 -1
- package/Engines/Native/nativeInterfaces.d.ts +7 -1
- package/Engines/Native/nativeInterfaces.js.map +1 -1
- package/Engines/WebGPU/webgpuTextureManager.js +3 -3
- package/Engines/WebGPU/webgpuTextureManager.js.map +1 -1
- package/Engines/abstractEngine.d.ts +11 -1
- package/Engines/abstractEngine.js +12 -2
- package/Engines/abstractEngine.js.map +1 -1
- package/Engines/engine.common.js +0 -4
- package/Engines/engine.common.js.map +1 -1
- package/Engines/engine.d.ts +0 -1
- package/Engines/engine.js +0 -1
- package/Engines/engine.js.map +1 -1
- package/Engines/nativeEngine.d.ts +7 -1
- package/Engines/nativeEngine.js +12 -0
- package/Engines/nativeEngine.js.map +1 -1
- package/FlowGraph/Blocks/Data/Math/flowGraphMatrixMathBlocks.d.ts +5 -1
- package/FlowGraph/Blocks/Data/Math/flowGraphMatrixMathBlocks.js +16 -5
- package/FlowGraph/Blocks/Data/Math/flowGraphMatrixMathBlocks.js.map +1 -1
- package/Layers/effectLayer.d.ts +5 -0
- package/Layers/effectLayer.js +7 -0
- package/Layers/effectLayer.js.map +1 -1
- package/Lights/Shadows/cascadedShadowGenerator.js +33 -20
- package/Lights/Shadows/cascadedShadowGenerator.js.map +1 -1
- package/Loading/sceneLoader.d.ts +25 -11
- package/Loading/sceneLoader.js +28 -11
- package/Loading/sceneLoader.js.map +1 -1
- package/Materials/Textures/hdrCubeTexture.js +4 -1
- package/Materials/Textures/hdrCubeTexture.js.map +1 -1
- package/Materials/material.js +1 -0
- package/Materials/material.js.map +1 -1
- package/Meshes/csg2.d.ts +2 -2
- package/Meshes/csg2.js +2 -2
- package/Meshes/csg2.js.map +1 -1
- package/Meshes/geometry.js +7 -15
- package/Meshes/geometry.js.map +1 -1
- package/Meshes/instancedMesh.d.ts +5 -0
- package/Meshes/instancedMesh.js +6 -0
- package/Meshes/instancedMesh.js.map +1 -1
- package/Misc/environmentTextureTools.js +2 -2
- package/Misc/environmentTextureTools.js.map +1 -1
- package/Rendering/IBLShadows/iblShadowsPluginMaterial.js +26 -18
- package/Rendering/IBLShadows/iblShadowsPluginMaterial.js.map +1 -1
- package/Shaders/ShadersInclude/shadowMapFragment.js +1 -0
- package/Shaders/ShadersInclude/shadowMapFragment.js.map +1 -1
- package/Shaders/iblCdfDebug.fragment.js +2 -2
- package/Shaders/iblCdfDebug.fragment.js.map +1 -1
- package/ShadersWGSL/ShadersInclude/shadowMapFragment.js +1 -0
- package/ShadersWGSL/ShadersInclude/shadowMapFragment.js.map +1 -1
- package/ShadersWGSL/iblCdfDebug.fragment.js +2 -2
- package/ShadersWGSL/iblCdfDebug.fragment.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/scene.js +8 -0
- package/scene.js.map +1 -1
package/Loading/sceneLoader.js
CHANGED
|
@@ -315,7 +315,7 @@ export function RegisterSceneLoaderPlugin(plugin) {
|
|
|
315
315
|
}
|
|
316
316
|
/**
|
|
317
317
|
* Adds a new plugin to the list of registered plugins
|
|
318
|
-
* @deprecated Please use
|
|
318
|
+
* @deprecated Please use {@link RegisterSceneLoaderPlugin} instead.
|
|
319
319
|
* @param plugin defines the plugin to add
|
|
320
320
|
*/
|
|
321
321
|
export function registerSceneLoaderPlugin(plugin) {
|
|
@@ -335,6 +335,17 @@ export function GetRegisteredSceneLoaderPluginMetadata() {
|
|
|
335
335
|
return pluginMap;
|
|
336
336
|
}, new Map())).map(([name, extensions]) => ({ name, extensions }));
|
|
337
337
|
}
|
|
338
|
+
/**
|
|
339
|
+
* Import meshes into a scene
|
|
340
|
+
* @param source a string that defines the name of the scene file, or starts with "data:" following by the stringified version of the scene, or a File object, or an ArrayBufferView
|
|
341
|
+
* @param scene the instance of BABYLON.Scene to append to
|
|
342
|
+
* @param options an object that configures aspects of how the scene is loaded
|
|
343
|
+
* @returns The loaded list of imported meshes, particle systems, skeletons, and animation groups
|
|
344
|
+
*/
|
|
345
|
+
export function ImportMeshAsync(source, scene, options) {
|
|
346
|
+
const { meshNames, rootUrl = "", onProgress, pluginExtension, name, pluginOptions } = options ?? {};
|
|
347
|
+
return importMeshAsyncCore(meshNames, rootUrl, source, scene, onProgress, pluginExtension, name, pluginOptions);
|
|
348
|
+
}
|
|
338
349
|
async function importMeshAsync(meshNames, rootUrl, sceneFilename = "", scene = EngineStore.LastCreatedScene, onSuccess = null, onProgress = null, onError = null, pluginExtension = null, name = "", pluginOptions = {}) {
|
|
339
350
|
if (!scene) {
|
|
340
351
|
Logger.Error("No scene available to import mesh to");
|
|
@@ -455,7 +466,7 @@ export function LoadSceneAsync(source, engine, options) {
|
|
|
455
466
|
}
|
|
456
467
|
/**
|
|
457
468
|
* Load a scene
|
|
458
|
-
* @deprecated Please use
|
|
469
|
+
* @deprecated Please use {@link LoadSceneAsync} instead.
|
|
459
470
|
* @param source a string that defines the name of the scene file, or starts with "data:" following by the stringified version of the scene, or a File object, or an ArrayBufferView
|
|
460
471
|
* @param engine is the instance of BABYLON.Engine to use to create the scene
|
|
461
472
|
* @param options an object that configures aspects of how the scene is loaded
|
|
@@ -565,7 +576,7 @@ export async function AppendSceneAsync(source, scene, options) {
|
|
|
565
576
|
}
|
|
566
577
|
/**
|
|
567
578
|
* Append a scene
|
|
568
|
-
* @deprecated Please use
|
|
579
|
+
* @deprecated Please use {@link AppendSceneAsync} instead.
|
|
569
580
|
* @param source a string that defines the name of the scene file, or starts with "data:" following by the stringified version of the scene, or a File object, or an ArrayBufferView
|
|
570
581
|
* @param scene is the instance of BABYLON.Scene to append to
|
|
571
582
|
* @param options an object that configures aspects of how the scene is loaded
|
|
@@ -678,7 +689,7 @@ export function LoadAssetContainerAsync(source, scene, options) {
|
|
|
678
689
|
}
|
|
679
690
|
/**
|
|
680
691
|
* Load a scene into an asset container
|
|
681
|
-
* @deprecated Please use
|
|
692
|
+
* @deprecated Please use {@link LoadAssetContainerAsync} instead.
|
|
682
693
|
* @param source a string that defines the name of the scene file, or starts with "data:" following by the stringified version of the scene, or a File object, or an ArrayBufferView
|
|
683
694
|
* @param scene is the instance of Scene to append to
|
|
684
695
|
* @param options an object that configures aspects of how the scene is loaded
|
|
@@ -774,7 +785,7 @@ export async function ImportAnimationsAsync(source, scene, options) {
|
|
|
774
785
|
}
|
|
775
786
|
/**
|
|
776
787
|
* Import animations from a file into a scene
|
|
777
|
-
* @deprecated Please use
|
|
788
|
+
* @deprecated Please use {@link ImportAnimationsAsync} instead.
|
|
778
789
|
* @param source a string that defines the name of the scene file, or starts with "data:" following by the stringified version of the scene, or a File object, or an ArrayBufferView
|
|
779
790
|
* @param scene is the instance of BABYLON.Scene to append to
|
|
780
791
|
* @param options an object that configures aspects of how the scene is loaded
|
|
@@ -801,7 +812,8 @@ function importAnimationsSharedAsync(rootUrl, sceneFilename, scene, overwriteAni
|
|
|
801
812
|
/**
|
|
802
813
|
* Class used to load scene from various file formats using registered plugins
|
|
803
814
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/importers/loadingFileTypes
|
|
804
|
-
* @deprecated The module level functions
|
|
815
|
+
* @deprecated The module level functions are more efficient for bundler tree shaking and allow plugin options to be passed through. Future improvements to scene loading will primarily be in the module level functions. The SceneLoader class will remain available, but it will be beneficial to prefer the module level functions.
|
|
816
|
+
* @see {@link ImportMeshAsync}, {@link LoadSceneAsync}, {@link AppendSceneAsync}, {@link ImportAnimationsAsync}, {@link LoadAssetContainerAsync}
|
|
805
817
|
*/
|
|
806
818
|
export class SceneLoader {
|
|
807
819
|
/**
|
|
@@ -885,7 +897,7 @@ export class SceneLoader {
|
|
|
885
897
|
* @param onError a callback with the scene, a message, and possibly an exception when import fails
|
|
886
898
|
* @param pluginExtension the extension used to determine the plugin
|
|
887
899
|
* @param name defines the name of the file, if the data is binary
|
|
888
|
-
* @deprecated Please use ImportMeshAsync instead
|
|
900
|
+
* @deprecated Please use the module level {@link ImportMeshAsync} instead
|
|
889
901
|
*/
|
|
890
902
|
static ImportMesh(meshNames, rootUrl, sceneFilename, scene, onSuccess, onProgress, onError, pluginExtension, name) {
|
|
891
903
|
importMeshAsync(meshNames, rootUrl, sceneFilename, scene, onSuccess, onProgress, onError, pluginExtension, name).catch((error) => onError?.(EngineStore.LastCreatedScene, error?.message, error));
|
|
@@ -900,6 +912,7 @@ export class SceneLoader {
|
|
|
900
912
|
* @param pluginExtension the extension used to determine the plugin
|
|
901
913
|
* @param name defines the name of the file
|
|
902
914
|
* @returns The loaded list of imported meshes, particle systems, skeletons, and animation groups
|
|
915
|
+
* @deprecated Please use the module level {@link ImportMeshAsync} instead
|
|
903
916
|
*/
|
|
904
917
|
static ImportMeshAsync(meshNames, rootUrl, sceneFilename, scene, onProgress, pluginExtension, name) {
|
|
905
918
|
return importMeshAsyncCore(meshNames, rootUrl, sceneFilename, scene, onProgress, pluginExtension, name);
|
|
@@ -914,7 +927,7 @@ export class SceneLoader {
|
|
|
914
927
|
* @param onError a callback with the scene, a message, and possibly an exception when import fails
|
|
915
928
|
* @param pluginExtension the extension used to determine the plugin
|
|
916
929
|
* @param name defines the filename, if the data is binary
|
|
917
|
-
* @deprecated Please use
|
|
930
|
+
* @deprecated Please use the module level {@link LoadSceneAsync} instead
|
|
918
931
|
*/
|
|
919
932
|
static Load(rootUrl, sceneFilename, engine, onSuccess, onProgress, onError, pluginExtension, name) {
|
|
920
933
|
loadSceneImplAsync(rootUrl, sceneFilename, engine, onSuccess, onProgress, onError, pluginExtension, name).catch((error) => onError?.(EngineStore.LastCreatedScene, error?.message, error));
|
|
@@ -928,6 +941,7 @@ export class SceneLoader {
|
|
|
928
941
|
* @param pluginExtension the extension used to determine the plugin
|
|
929
942
|
* @param name defines the filename, if the data is binary
|
|
930
943
|
* @returns The loaded scene
|
|
944
|
+
* @deprecated Please use the module level {@link LoadSceneAsync} instead
|
|
931
945
|
*/
|
|
932
946
|
static LoadAsync(rootUrl, sceneFilename, engine, onProgress, pluginExtension, name) {
|
|
933
947
|
return loadSceneSharedAsync(rootUrl, sceneFilename, engine, onProgress, pluginExtension, name);
|
|
@@ -942,7 +956,7 @@ export class SceneLoader {
|
|
|
942
956
|
* @param onError a callback with the scene, a message, and possibly an exception when import fails
|
|
943
957
|
* @param pluginExtension the extension used to determine the plugin
|
|
944
958
|
* @param name defines the name of the file, if the data is binary
|
|
945
|
-
* @deprecated Please use
|
|
959
|
+
* @deprecated Please use the module level {@link AppendSceneAsync} instead
|
|
946
960
|
*/
|
|
947
961
|
static Append(rootUrl, sceneFilename, scene, onSuccess, onProgress, onError, pluginExtension, name) {
|
|
948
962
|
appendSceneImplAsync(rootUrl, sceneFilename, scene, onSuccess, onProgress, onError, pluginExtension, name).catch((error) => onError?.((scene ?? EngineStore.LastCreatedScene), error?.message, error));
|
|
@@ -956,6 +970,7 @@ export class SceneLoader {
|
|
|
956
970
|
* @param pluginExtension the extension used to determine the plugin
|
|
957
971
|
* @param name defines the name of the file, if the data is binary
|
|
958
972
|
* @returns The given scene
|
|
973
|
+
* @deprecated Please use the module level {@link AppendSceneAsync} instead
|
|
959
974
|
*/
|
|
960
975
|
static AppendAsync(rootUrl, sceneFilename, scene, onProgress, pluginExtension, name) {
|
|
961
976
|
return appendSceneSharedAsync(rootUrl, sceneFilename, scene, onProgress, pluginExtension, name);
|
|
@@ -970,7 +985,7 @@ export class SceneLoader {
|
|
|
970
985
|
* @param onError a callback with the scene, a message, and possibly an exception when import fails
|
|
971
986
|
* @param pluginExtension the extension used to determine the plugin
|
|
972
987
|
* @param name defines the filename, if the data is binary
|
|
973
|
-
* @deprecated Please use LoadAssetContainerAsync instead
|
|
988
|
+
* @deprecated Please use the module level {@link LoadAssetContainerAsync} instead
|
|
974
989
|
*/
|
|
975
990
|
static LoadAssetContainer(rootUrl, sceneFilename, scene, onSuccess, onProgress, onError, pluginExtension, name) {
|
|
976
991
|
loadAssetContainerImplAsync(rootUrl, sceneFilename, scene, onSuccess, onProgress, onError, pluginExtension, name).catch((error) => onError?.((scene ?? EngineStore.LastCreatedScene), error?.message, error));
|
|
@@ -984,6 +999,7 @@ export class SceneLoader {
|
|
|
984
999
|
* @param pluginExtension the extension used to determine the plugin
|
|
985
1000
|
* @param name defines the filename, if the data is binary
|
|
986
1001
|
* @returns The loaded asset container
|
|
1002
|
+
* @deprecated Please use the module level {@link LoadAssetContainerAsync} instead
|
|
987
1003
|
*/
|
|
988
1004
|
static LoadAssetContainerAsync(rootUrl, sceneFilename, scene, onProgress, pluginExtension, name) {
|
|
989
1005
|
return loadAssetContainerSharedAsync(rootUrl, sceneFilename, scene, onProgress, pluginExtension, name);
|
|
@@ -1001,7 +1017,7 @@ export class SceneLoader {
|
|
|
1001
1017
|
* @param onError a callback with the scene, a message, and possibly an exception when import fails
|
|
1002
1018
|
* @param pluginExtension the extension used to determine the plugin
|
|
1003
1019
|
* @param name defines the filename, if the data is binary
|
|
1004
|
-
* @deprecated Please use ImportAnimationsAsync instead
|
|
1020
|
+
* @deprecated Please use the module level {@link ImportAnimationsAsync} instead
|
|
1005
1021
|
*/
|
|
1006
1022
|
static ImportAnimations(rootUrl, sceneFilename, scene, overwriteAnimations, animationGroupLoadingMode, targetConverter, onSuccess, onProgress, onError, pluginExtension, name) {
|
|
1007
1023
|
importAnimationsImplAsync(rootUrl, sceneFilename, scene, overwriteAnimations, animationGroupLoadingMode, targetConverter, onSuccess, onProgress, onError, pluginExtension, name).catch((error) => onError?.((scene ?? EngineStore.LastCreatedScene), error?.message, error));
|
|
@@ -1020,6 +1036,7 @@ export class SceneLoader {
|
|
|
1020
1036
|
* @param pluginExtension the extension used to determine the plugin
|
|
1021
1037
|
* @param name defines the filename, if the data is binary
|
|
1022
1038
|
* @returns the updated scene with imported animations
|
|
1039
|
+
* @deprecated Please use the module level {@link ImportAnimationsAsync} instead
|
|
1023
1040
|
*/
|
|
1024
1041
|
static ImportAnimationsAsync(rootUrl, sceneFilename, scene, overwriteAnimations, animationGroupLoadingMode, targetConverter,
|
|
1025
1042
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|