how would you handle navigating through tabs using a tool bar with new ui elements?
We don’t have a set pattern for tabs within windows in Unity. However, if you wish to do it, you just need a few Buttons for your tabs (with appropriate styling changes). When you register a click on one of your tab buttons, you either:
- Use
myTabContentRootElement.style.display
style property to hide the current contents and unhide the new tab’s contents - or, you
myTabContentRootElement.Clear()
the current contents and usemyUxmlAsset.CloneTree()
(or just a function that creates UI) to repopulate your content