Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can not scale my Canvas in unity

Tags:

unity3d

I can't scale my Canvas in unity. Where i normally do it, it like this: enter image description here

I can't scale it or any thing.

like image 307
Magnus Avatar asked Mar 06 '23 20:03

Magnus


1 Answers

As indicated at the top of the RectTransform, values are driven by the Canvas component (or the CanvasScaler component)

According to the Render Mode you have selected, you are able (or not) to change the values. You may want to scale the children of the canvas instead of the canvas itself. If you have problems with designing your UI for multiple resolutions, I advise you to read the documentation page about this problem.

Screen Space - Overlay

The canvas is drawn after all the other cameras. Its dimensions change according to your screen. The scale does not need to be changed.

ScreenSpace - Camera

The canvas is rendered by the given camera, at a given distance from the latter. Its dimensions change according to the camera's rendering settings.

World space

The canvas is a "real" object inside your scene, treated like any other objects (culling apply, ...). In this mode, you can scale the canvas.

Source : https://docs.unity3d.com/Manual/UICanvas.html

like image 194
Hellium Avatar answered Mar 23 '23 20:03

Hellium