- Home /
UI Constant Physical Size, rect sizes not corresponding to real sizes
Hello community! After reviewing various topics about "constant physical size" of UI elements, it seemed that most of the problems were "Editor visualization".
For particular needs, I want to have an image of exactly 20mm x 20mm, on every device. I tought that, setting Canvas Scaler to constant physical size, setting millimeters, and setting "width / heigth" of the image to 20, would do the job.
Unfortunately, it doesn't. Measuring the image on actual screen devices with a ruler, shows that the image is a little bigger, with small differences with different devices. (In editor: 2cm x 2cm, Real screen: 2.4cm x 2.4cm)
Canvas / Canvas scaler configuration
Image configuration
Am I doing something wrong? What do I need to do to achieve exactly the size I want?
Thank you in advance for your kindness!
Your answer
![](https://koobas.hobune.stream/wayback/20220612051939im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Good way to scale 3D GameObjects in a Canvas (Screen Space - Camera)? 1 Answer
Why is my canvas not going away on scene load in build, but is in editor? 2 Answers
UI not scaling correctly with screen resolution 1 Answer
Unity editor GUI, how to prevent "passthrough"/"clickthrough" etc? 0 Answers
Canvas rectTransform randomly resetting in the Editor 3 Answers