Unity canvas to big fix

preview_player
Показать описание
Quick tutorial to fix the size of the canvas when it is placed in a unity scene.
Рекомендации по теме
Комментарии
Автор

This advice is bad. Those camera types are there for a reason, and not meant for a quick fix to a spefici issue. "Screen Space - Overlay: In this mode, the Canvas is scaled to fit the screen and then rendered directly without reference to the scene or a camera (the UI will be rendered even if there is no camera in the scene at all). If the screen’s size or resolution are changed then the UI will automatically rescale to fit. The UI will be drawn over any other graphics such as the camera view." And for camera: "Screen Space - Camera
In this mode, the Canvas is rendered as if it were drawn on a plane object some distance in front of a given camera. The onscreen size of the UI does not vary with the distance since it is always rescaled to fit exactly within the camera frustum. If the screen’s size or resolution or the camera frustum are changed then the UI will automatically rescale to fit. Any 3D objects
in the scene that are closer to the camera than the UI plane will be rendered in front of the UI, while objects behind the plane will be obscured." Dont choose camera unless you want your UI behind your game objects

jessensloan
Автор

Gosh, can't believe this is so hard to find. People like you make software development so much more manageable, thank you.

ziro
Автор

Thank you so much Narcitheus i searched all over the internet and i couldn't find anything but then i found your video, you are the best

Sebastilan
Автор

I'm from Brazil, my friend doesn't have a tutorial in Brazil about this and I was starting to freak out. Thanks. Yes, I would give it to you if I were a woman.

Luciano-qcom
Автор

screen size to camera and overlay are for two different purpose. overlay will always stay on top of screen. but the one with camera can go under some dynamically added objects. So be careful doing this

zeeshantufail
Автор

Thank you so much it even works on ubuntu 22.04!

Itscodexlol
Автор

like a cup of water in the desert, thank you

HaiNgoc-dcup
Автор

thank you so much much much much much much much much much much much much much much much much much much much much much much much much

NotThatGuyDoes
Автор

I think it was intended to be that way

VEETEEGameStudio
Автор

Render mode also changes the position of UI relative to the game objects so this advice is flawed.

pixels
Автор

ขอบคุณมากๆเลยครับ Thank you so much. I use it in my Senior Project❤ You can help me😊

chanakankanokmaneerat
Автор

i cant see my objects that are in the canvas if i do what you said...

akopaaa
Автор

hello everyone, im trying to get monetized so if you guys can subscribe id appreciate it
:3

Narcitheus
Автор

Worst advice ever… he doesn’t know or explain the differences… be careful.

FortbloxNET