Id like to use a layout as a repository to design and store all of my complex game items. They are made of an Element sprite with a container filled with Objects sprites also connected to the Element through Hierarchy. Thus Element is parent to Objects.
When I drag an Element in another layout, I see in the debugger that every Objects are correctly added runtime, put into the right container but everything acts as if hierarchy was broken.
Am I missing something ?
Edit :
I managed to reinstore hierarchy using a test when layout is stored :
On layout start > for each Element > pick Object where Object.ParentName = Element.Name > add child Object to Element
It seems to me a bit complicated and I'm sure there's a better way to do this.
Also, in new layout where just Element is dropped, Objects don't keep their position relative to Element that they have in Repository layout and are all created at Point.0