UI button super big!

Here watch this video please.

Nice that you recorded a video of the problem.

The easiest solution would be to try and scale the Game Camera and everything in the game camera so that it sort of fits the sizes of the UI since the UI canvas is based on pixels and that’s maybe why it’s big, the canvas will resize when you resize the game view the things setup in 3d space / world objects will not resize when you change the game view therefore it will never be perfect to match these up in a scene view.

My own solution to this is not to care too much about the scalings of game vs UI and use the F button to focus/zoom in on the selected the object you’re editing in the scene view and to position the windows Game and scene next to each other instead of switching between them with tabs. That workflow might be good for you as well…

Cheers

1 Like

So there’s no real way to do it? Just work arounds?

There is no “out of the box” way to get them aligned these things, bear in mind that the UI elements in the scene also chances size and dimension according to the size of the gameview so they might also introduce some difficulties in aliging them properly. I had a similar issue to you where I needed something to be pixel perfect according to a backgrond image we used as referance to setting up the UI, what we ended up doing was making a script that made sure that the gameview was always the same width/height in the editor no matter what.

one could also look into downloading the source from the UI system and modify it in such a way that ti doesnt rescale the Canvas accoding to the size of the gameview to achieve a reliable way of setting up the UI.

The reason why they did it like that is becaurse it is “the unity way” aká the WYSIWYG way, they didnt want you to be able to setup UI that looked diffirent in hte gameview when compared to what you see in the sceneview.

Well, its the way how the UI works in unity, its not super big lol… go to Learn section of Unity and watch some UI tutorials for beginners.