I am new to Babylonjs
I was looking if we can create containers in Babylonjs?
(I have gone through Assets Container and GUI - Container)
What i want to do is -
Within a scene, create some containers.
containers will contain similar objects e.g.
container #1: for Buttons
container #2: for packedSprirte animations
container #3: for some 3D Mesh
Now on run time i want to -
change the x & y coordinates of these containers
change visibility
change scale … etc…
Looking more into asset containers I don’t think that is how to go about doing this. (please correct me if I’m wrong). You could iterate through all the meshes in a container and just set your properties. Another suggestion is make a mesh and have other meshes parented to that one.
@JohnK , track a mesh is a workaround to this problem but there is no option to have everything within one roof? i.e. like global container which can contain GUI and Mesh etc. (basically add any item to the container/node which Babylon supports)?
Thanks @sebavan
Do you think it’s possible to include such functionality (global container) in upcoming versions?
This could be helpful for many projects.