When using LoadAssetContainer to load babylon scene data described in JSON format, the onNewMeshAdd for the same mesh will be executed repeatedly.
The scene data in playground only contains a cube mesh.
When using LoadAssetContainer to load babylon scene data described in JSON format, the onNewMeshAdd for the same mesh will be executed repeatedly.
The scene data in playground only contains a cube mesh.
Let me have a look
Working on a tentative fix: Try preventing events during babylon file parsing by sebavan · Pull Request #17623 · BabylonJS/Babylon.js · GitHub
Had to revert the fix here LoadAssetContainerAsync doesn't work for Babylon files - #4 by sebavan
As it might be impactful, we ll work on a solution for it after the 9.0 release