Long story short, how can I change the order of the children in a parent node.
I have BABYLON.Node#getChildren() and BABYLON.Node#_children and I am currently doing
First line sets the parent. Second the third change the order of the children in the parent. But I am looking for something more “public” to do this change. Order of nodes for me is important as source document is coming from one system and continuing to another.
Just to confirm that I understand correctly since I have two solutions in my mind.
Using babylon _children order for keeping the order of the nodes -> much cleaner for me as the order is already there. But I need to have “public” access to property “_children” and to have an understanding that it is ok to use this order and that it will be exported in this order in GLTF and babylon format.
Use a custom metadata property that I will put in the “.metadata” that would give me the order.