UI in Game not showing that is in Builder

I am learning the UI toolkit, coming from the older unity UI. I followed a few tutorials on Youtube trying to learn the basics, but I can never get the UI to show up and match in game view what is in the UI Builder view.

Buttons don’t show up, nor does anything else. To get these bars to show even I had to set the parent VisualElement to absolute0,0,0,0.

I’m sure I’m missing something, but looking repeatedly at the tutorials I can’t find a missed step.

If your UI elements aren’t showing up in Unity’s UI Toolkit:

  1. Ensure you have a UIDocument component on a GameObject in your scene, and that it references your UI Document (UXML) file.
  2. Check that the VisualElement is correctly styled in your USS file and that it’s not hidden by other elements or set to zero size.
  3. Make sure you are in the Play mode to see the UI as it will appear in the game.

Double-check these settings to ensure everything is configured correctly

1 Like