Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: finky45 on January 13, 2014, 08:14:10 AM

Title: Scaling based on DPI
Post by: finky45 on January 13, 2014, 08:14:10 AM
So I am trying to make a universal GUI (just 3 simple buttons) to scale dynamically based on the DPI of the mobile device. There is nothing else but 3 buttons and I can't get them to scale (they just remained fixed in pixels). Is there documentation how to accomplish DPI scaling?
Title: Re: Scaling based on DPI
Post by: NikSpace on January 13, 2014, 09:33:03 AM
First tell me if you have check the Scaling Style on UI Root.

If yes an other way is i "thing" store Screen.dpi and use it to some how multiple the width and size of your sprites!!
Title: Re: Scaling based on DPI
Post by: ArenMook on January 13, 2014, 05:45:32 PM
If you want scaling based on DPI, set UIRoot to Fixed Size mode and change its Manual height yourself based on your DPI-sensing logic.