So I’m very new to Unity and I started the 2D Beginner: Adventure Game tutorial on Unity. Everything was fine in my Game View before. It worked. I got to the health display section and started using the UI Toolkit and everything, and when I added it to my scene and tried to play it to see what it would look like, the whole screen was black except for the VisualElement in my GameUI. I’ve tried messing with the Canvas Background and redoing the whole section, but the screen stays black.
In comments on the tutorial, they were complaining about their elements not lining up from the UI Builder to the Game View, but I don’t have that problem. Help??
Try disabling the UIDocument and hit play. If it’s not black then you know it’s indeed the ui that is causing this. If it is the ui then use the live UI Debugger to find out what element is causing the black background (iirc it’s under Window/UI Toolkit or something): Unity - Manual: UI Toolkit Debugger
I tried hiding the layer and locking it but it’s still black…I know it’s something to do with the UI because I wasn’t having this problem before but I don’t know how it’s effecting everything this much??