So I’ve started working on the new Unity UI and made the simplest menu I could make. I then build the project, ran it and to my surprise the entire menu is bugged, it works completely fine in editor but doesn’t work in build.
I am at complete loss here, is this really a Unity bug or am I doing something horribly wrong? If this is indeed a Unity bug I am REALLY surprised this got beyond Q&A.
If anyone of you could help me out that would be greatly appreciated.
If you add a camera it works like in the editor. Not that the camera has a “Clear flags” property and you can set a background color. I guess that having no camera means the frame buffer is not cleared, so the canvas in Overlay just draws everything over the image of the previous frame.
I’m not sure if this is a bug or not, but maybe it’s more like a bug in the editor itself, since it does clear the frame buffer even without a camera. But maybe it just works that way because the scene view is part of the editor and the editor itself does clear the frame buffer.