Unity GUI Tutorial - Scale GUI to the right size for every resolution

Hekolozo 2017-10-18

Views 2

This Unity Tutorial will show you how to make your GUI automatically scale to the right size for every screen resolution and aspect ratio. See here for how to do this for GUIText: \r
See here for how to do this for Unity 5 UI: \r
\r
Visit my website to see the code: \r
Google+ Community: \r
Twitter: \r
Facebook: \r
\r
To connect your device to unity, download the unity remote app and follow these steps: \r
\r
Time Breakdown:\r
1:20 - Overview of different aspect ratios for mobile and desktop\r
2:00 - Demonstration and explaination of why Pixel Inset values are not good for scalability\r
3:10 - Explaination of how Pixel Inset values work\r
5:00 - Use Transform Position and Scale values instead!\r
7:30 - GUITexture anchor points are in the center by default\r
7:50 - How to change the anchor point of a GUITexture (useful for health bars and such)\r
9:45 - Demonstration of why you cant get perfect squares and circles without code\r
10:10 - Using a script to make a perfect square GUITexture\r
11:39 - Explaination of how the script works\r
15:20 - Outro Thanks for watching :D

Share This Video


Download

  
Report form