Getting a little confused working out which grouping type mechanism’s I should now be using for basic layout of my screen elements/components using an inheritance type approach. I note Group’s don’t support anchor points so does this mean I need to run with “container” or “snapshot” then. So my user requirements in this case say are:
* ability to group display objects together for layout purposes
* will want to have multiple levels of groups (e.g. stars collected icons in a stars group, this within say the titleBarGroup, and this then within the overall scene group)
* can position each individual display object within it’s immediate group based on setting it’s position relative it’s immediate container. Then this immediate container could be positioned within it’s parent group relative to it’s location so to speak. In more detail then say:
- 3 stars indicators spaced out equally across a stars group, centered vertically
- the stars group itself may appear 2/3rds the way along the title bar group, at top re vertically
- title bar group then at the top and center of the scene.view, at top re vertically
* so goal is that I can layout the elements of each layer independently of the above layer so to speak
* also if I add later another element to a layer it should not affect the positioning of that layer’s positioning within it’s parent (hope this makes sense)
What approach should I use? Is a “group” not possible here as I read groups do not respect anchor points?