I’m trying to create meshes with random values, including names, materials, animations, etc. I modified the instance example from the documentation, and I managed to create new meshes (not instances) and new materials with unique names (according to the inspector anyway). However, when I try to include the new meshes in a function (i.e. “box1”), it doesn’t work. So, it seems I’m missing code to let the scene know that the new meshes exist, or this method of creating new random meshes simply doesn’t work.
By the way, I’ve attempted to use clones, duplicating asset containers, instances, and the solid particle system to achieve the game mechanic with no success. It’s possible what I’m trying to achieve isn’t currently possible with BabylonJS.