Transition between UI Documents

Hi,

I’m currently experimenting with the new UI Toolkit. What I like to build is a main menu with some buttons, e.g.:
Play, Settings and Quit. Now the Question is, should I create a new UI Document for the Settings Screen? If yes, how can I do the transition from one UI Document to the next one? Or should I create both screens in one UI Document and just hide the settings screen in the initial state?

Thank you for your help.

Hello! I’m assuming you’re talking about the UI Document component that you add to your game objects, and you can either have one per UXML (one UXML being your main menu, the other being the settings screen), or if you choose to keep a single UI Document, you’ll have to write code that switches the source asset (UXML) in it :slight_smile:

Hope this helps!