Visual Problems with UI Elements

Hello there.

Im currently working on a Main Menu for our game.

For whatever reason, the UI destructs itself nearly everytime i’ll save and close the project.
The next time I run the engine, it changes the look of the UI like the following.

I didnt used any fancy techniques. Ive just created a Canvas, placed a Panel for both Title and Buttons. Also I made a Panel for every Button itself to align it the way I’ve wanted it to. I did not used Anchor Presets or anything else.

I know so far, thats its happening due to negative width or height in the RectTransform but not, what setting that causes cause everytime ill work on it, this didnt happens.

So if anyone has a solution or atleast a tip how to recreate the problem and may find out whats happening, let me know!

Kind regards,
Housten

If this is all you have thus far I would recommend to switch to UI Builder / UI Toolkit. Design your GUI visually and don’t stress out on UGUI. :wink:

Without seeing your actual setup and possible scripts that create/destroy or reparent GUI objects it’s not possible to say what’s going on. I would suspect auto-layout behaviour because that’s rather easy to mess up with UGUI.

And when you say “Panel” do you mean Canvas? Like multiple nested Canvases? According to this post a Panel contains a canvas renderer. I would avoid nesting those.