Sidebar and Page
- Ovrle UI dashboard consists of a sidebar and pages.
- Dashboard may have multiple pages.
- Sidebar has page links to switch pages.
- Page has UI elements under their Contents game object.
Usage
- Dashboard prefab has one page and sidebar item by default.
- Set page id on page game object inspector.
- Page id is a unique string in all pages that is used for page switching.
- Set the page id to corresponding sidebar item game object.
Set pageId of page game object.
Set the same pageId to corresponding sidebar item game object.
Add new page
- Drag and drop Page prefab to Dashboard > Pages and set unique page id in inspector.
- Drag and drop SidebarItem prefab to Dashboard > Sidebar > Items and set the same page id in inspector.
Change sidebar item text by SidebarItem > Text inspector.
More details on Sidebar, SidebarItem and Page pages.