UI layout getting completely change on reopening the scene and/or the project

Hi there,

I’m at loss again on something I really don’t understand.
I placed my background canvas with an image and the title. Everything was looking nice. And now when I reopened the scene, everything got messed up and reset to a weird state that looks like it redefaulted everything… except it hasn’t: all the parameters in the inspectors are identical and nothing changed. I’m just baffled and I can’t get to understand why it does this, plus it is extremely annoying.

Also, the regular tools to move things around, resize, etc, don’t seem to really work with TextMesh Pro objects. They just don’t do anything, or worse do weird behaviours. I tried restarting my Unity multiple times but it always does this. Pls help.

Bastien

Hi Bastien,

Since I do not know what you see and what might be “weird”, a screenshot would be great. :slight_smile:

Just a guess: If the Render Mode of the Canvas component is set to “Screen Space - Overlay”, the canvas automatically adjusts itself to the size of your game screen. If you changed the size of the game window, that could explain why the content of the canvas suddenly looks chaotic.

Furthermore, make sure the anchors of your UI elements are set correctly.

https://docs.unity3d.com/Packages/com.unity.ugui@1.0/manual/UIBasicLayout.html

Thanks Nina, it does explain why things moved quite a lot. Though my version of Unity was also at fault for the tools and part of the disaster as things were being changed on reload even when I was saving the project properly. I went back to Unity 2020 LTS and it works waaaayy better. :slight_smile:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms