# Unity UI : no resize

**URL:** https://discussions.unity.com/t/unity-ui-no-resize/565407
**Category:** UGUI
**Tags:** UGUI
**Created:** [January 29, 2015, 7:09pm UTC](https://discussions.unity.com/t/unity-ui-no-resize/565407 "2015-01-29T19:09:39Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Hindi](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@Hindi](https://discussions.unity.com/u/Hindi)
#### Post date: [January 29, 2015, 7:09pm UTC](https://discussions.unity.com/t/unity-ui-no-resize/565407/1 "2015-01-29T19:09:39Z")

</div>

After looking around and trying a lot of things, i can’t achieve the following : I’d like to have a menu that never rescale. Like if an Android user put his phone right next to a computer screen, all of the buttons will have the same size.  
As I understand it, setting the render mode to world space and disabling stretching should do the job… Well, it doesn’t !  
Anything that I could have miss ?

---

<div class="post-metadata">

### Author: ![Eric5h5](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/eric5h5/32/44225_2.png) [@Eric5h5](https://discussions.unity.com/u/Eric5h5)
#### Post date: [January 29, 2015, 7:17pm UTC](https://discussions.unity.com/t/unity-ui-no-resize/565407/2 "2015-01-29T19:17:20Z")

</div>

Set the canvas render mode to overlay and have the canvas scaler set to constant pixel size.

–Eric

---

<div class="post-metadata">

### Author: ![Hindi](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@Hindi](https://discussions.unity.com/u/Hindi)
#### Post date: [January 30, 2015, 10:00am UTC](https://discussions.unity.com/t/unity-ui-no-resize/565407/3 "2015-01-30T10:00:37Z")

</div>

Thank you for your answer Eric.  
This is the first thing I tried after reading the ui’s documentation but when launched on an Android smartphone, the ui was so small I could’nt push the right button.  
It does look right in the editor though…

---

<div class="post-metadata">

### Author: ![Hindi](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@Hindi](https://discussions.unity.com/u/Hindi)
#### Post date: [January 30, 2015, 2:38pm UTC](https://discussions.unity.com/t/unity-ui-no-resize/565407/4 "2015-01-30T14:38:12Z")

</div>

I just double checked and the UI is resized when using a canvas with Screen Space - Overlay and Constant Pixel Size on an Android phone.

---

<div class="post-metadata">

### Author: ![runevision](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/runevision/32/553011_2.png) [@runevision](https://discussions.unity.com/u/runevision)
#### Post date: [January 30, 2015, 3:42pm UTC](https://discussions.unity.com/t/unity-ui-no-resize/565407/5 "2015-01-30T15:42:18Z")

</div>

The Canvas Scaler mode should be Constant Physical Size, not Constant Pixels Size in order to do what you describe. This relies on each screen reporting a correct DPI value to Unity. See: [Redirecting to latest version of com.unity.ugui](http://docs.unity3d.com/Manual/script-CanvasScaler.html)

---

<div class="post-metadata">

### Author: ![Hindi](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@Hindi](https://discussions.unity.com/u/Hindi)
#### Post date: [January 30, 2015, 4:20pm UTC](https://discussions.unity.com/t/unity-ui-no-resize/565407/6 "2015-01-30T16:20:39Z")

</div>

That’s the solution, thank you !
