Hi all, hopefully this is a simple question.
I’m making a simple game, got a bunch of it working. Now I want to add a menu UI. When I add the UI text or panel it shows up GIGANTIC compared to my main camera. Should I scale the text/panel down or the camera up to make everything look good?
Thanks
David
Is this UI in the world or on the screen (ie: overlay)?
Just curious if it’s something a little odd-ish, because a text/panel shouldn’t be huge compared to your game.
That being said, does it just look huge in the editor, or when you start the game, also? The Canvas can seem huge in the editor, sometimes, but won’t look that way when you play…
I always make my non-world space canvas components in Camera space to preserve the relative size.
Screen space (overlay) is in 1 pixel per world unit, and since everything else in your game is a 100 pixels per unit or some other larger value, the screen space view will be huge in comparison. As far as I know Unity will make this more intuitive in the future, but the gigantic objects are actually correctly sized for screen-space.
Camera space will make the UI look exactly as it will in the game view, in the scene view. Just keep in mind that Camera space uses depth and can go behind things, so as long as your camera is far enough away, and your Canvas “plane distance” is low enough, it will behave just like screen space.
Okay, you hit on what I was thinking might be the perception issue. Though it appears huge, it’s not in fact huge at all.
I like screen space overlay, myself, but have been putting an effort to familiarize myself more with the camera space, as well 