Hi everyone,
I’m coming from Unity and I’m trying to understand the best way to create reusable objects/prefabs specifically in Babylon.js Editor.
For example, let’s say I want to create a Coin that I can use throughout my game. I would like to create it once and then spawn many instances of it in different levels/scenes.
I also plan to build my game using chunks. Each chunk would be a separate Scene that I can later instantiate/spawn through a Chunk Manager as the player progresses through the game.
From what I understand from the Babylon.js Editor documentation, instantiate seems to work with Scenes. So I’m wondering if the recommended workflow would be something like:
-
Create the Coin as a separate Scene in Babylon.js Editor.
-
Create each Chunk as a separate Scene, containing objects such as Coins, enemies, obstacles, etc.
-
Instantiate the Coin Scene inside the Chunk Scenes.
-
Then instantiate the Chunk Scenes through my Chunk Manager during the game.
Is this the correct approach in Babylon.js Editor?
One of the reasons I’m considering this workflow is that, if I later replace or modify the Coin model, I would like the changes to be reflected wherever that Coin is used, similar to how a Unity Prefab works.
So, what would be the recommended Babylon.js Editor workflow for creating something equivalent to Unity Prefabs, especially when those prefabs are used inside reusable Chunks that are themselves instantiated by a Chunk Manager?
Thanks!

