Unity 4.6 - How to scale GUI elements to the right size for every resolution

后端 未结 5 465
不知归路
不知归路 2021-01-30 17:30

The new Unity 4.6 comes with a new GUI, when I change de resolution on Unity the UI Button scales perfectly but when I test on the Nexus 7 device the Button looks too small. Any

5条回答
  •  借酒劲吻你
    2021-01-30 18:06

    If you want the button to be the same size for all screens and resolutions, you have to add the canvas scaler component to the canvas and the set the screen match mode to: match width or height, here is the link to the docs, this helps a lot if you want to aim to different sizes or resolutions:

    http://docs.unity3d.com/Manual/HOWTO-UIMultiResolution.html

提交回复
热议问题