My current array is not linear, that means a child can be at the end of the array and the parent in the middle.
When I save the scene, at the end I save the hierarchy by index :
for each object
uint32 NumChildren
for each child
uint32 ChildIndex;
When I load the scene after added all object in the array I use this hierarchy to set children to the good parent.
Using a linear array I could just store the object, numChildren and add in the array each child and add them as child in the object.
But I don't got an efficient way who is elegant to have that working.
Linear array means better cache and means less size of the scene save since no hierarchy needed just NumChildren after each object.
Thanks for the help