Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: tnbao91original on July 18, 2014, 03:21:20 AM

Title: Optimize foreach resolution
Post by: tnbao91original on July 18, 2014, 03:21:20 AM
My game just only support 4 resolution with aspec ratio 4:3 (ipad) 3:2 (iphone) 16:9 and 16:10. I know UI Root always keep the game object scaled to 2/(Screen.height) but that not my desire. Anyway to adjust in each resolution ex: 4:3 use fit height, 3:2 use fit width, 16:9 use fit visible or 16:10 pixel perfect ?

I'm the one who had asked can use TK2DCamera in 2D Tool Kit (because this camera script have awesome feature like i say above) together with all NGUI scripts and no UI Root.

I would love to use totally NGUI and may u think about my question :) it's would be awesome feature and your plugin will get back to my best choise to implement UI :)
Title: Re: Optimize foreach resolution
Post by: Nicki on July 18, 2014, 06:49:05 AM
I would recommend using a fixedSize on UIRoot and manually set the manualHeight to what you would need for each resolution in your own script that GetComponents the UIRoot. You can base it on Screen.height Screen.width to get the aspect.