How to make tabs

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:

  1. Use myTabContentRootElement.style.display style property to hide the current contents and unhide the new tab’s contents
  2. or, you myTabContentRootElement.Clear() the current contents and use myUxmlAsset.CloneTree() (or just a function that creates UI) to repopulate your content