in Rio it has both chapters and levels in the same page, i do it differently, i guess its like the old angry birds, where chapters are on one page, and when you click on a chapter it takes you to another page with the levels.
anyways, the way i do this is to have 2 panels, you will see them on the Hierarchy of the attached screenshot.
1- PanelChapters.
2- PanelLevels.
What i do is have the PanelChapters in the camera focus, and when clicking a specific chapter, the levels items will be created dynamically in the PanelLevels Object, and the PanelLevels is animated to move in and PanelChapters is moved out of the camera focus. wherever you see chapter(clone), or level(clone) on the hierarchy it is a level/chapter created dynamically out of a level/chapter object - also can be seen in the hierarchy at the top.
The view you see now is the PanelLevels after selecting a certain chapters. as you can see the levels [in the scene view] appear outside the pink clipping area, i need them to begin at the beginning of the clipping area - or at least have a way to control where they appear by default.
I am expecting the solution would be mainly in the code and not in the hierarcy, but if you know some way to do it that would be great.
i tried a combination of the following 2 functions, but none worked.
var UIGridScript:UIGrid = levelsGrid.transform.GetComponent("UIGrid") as UIGrid;
var dragPanel:UIDraggablePanel = panel.GetComponent("UIDraggablePanel") as UIDraggablePanel;
dragPanel.ResetPosition();
UIGridScript.Reposition();