Hi. I’m working on a game and I got a problem with my canvas. I was working earlier and it was all ok, I saved my project and took a break. Now I opened the game and all the UI is messed up. Stuff are on top each other and their position is wrong. All my scenes are like that. It looks like the canvas has reduced it size by itself. All UI elements were anchored properly before this, they seems to be with the same anchor points. I noticed that the UI elements’s position is way different that they were before this bug (I have a different file of a previous version of the project). Also noticed that the Rect Transform’s Height from each canvas is different, but their Canvas Scaler component has the same data. Someone please help me
Thanks.
Based on the pictures you posted, it looks like your game was initially in 1920x1080 (in the game view), but now it is on free aspect…
Change “Free Aspect” back to 1920x1080 and you should be fine again.
If you don’t know to change the resolution, it’s at the top of your “Game View” next to “Display 1”
Hi. Thanks for the answer. the problem is that it was always in “free aspect”. It was working normally on all the different resolutions in the game view. And now, even when I change the resolution in the game view , the UI still appears outside of Canvas. When I drag objects into Canvas, they appear larger than they were before. So I imagine that somehow Canvas seems to have shrunk. It is possible? And being in “Free aspect”, shouldn’t Unity do the scaling automatically too?
I have an issue where when I do a WebGL build, the canvas goes really small for some reason and I have no clue why? any solutions?



