hi,our game use 1024*768 resolution in IPAD,that no problem,but now we want to use out layout in android's pad device,there resolution ratio are not same,like 1280*800 1280*600 and so on.We don't want to make many size layouts and images for so many resolution,we just want to stretch them,so I modify the UIRoot.cs like this:
manualHeight = Mathf.Max(2, Screen.height);
//manualWidth = Mathf.Max(2, Screen.width);
float size = 2f / manualHeight * ((float)manualHeight / 768);
float sizeX = (float)Screen.width / 1024 * 2f / manualHeight;
Vector3 ls = mTrans.localScale;
if (!Mathf.Approximately(ls.x, sizeX) ||
!Mathf.Approximately(ls.y, size) ||
!Mathf.Approximately(ls.z, size))
{
mTrans
.localScale = new Vector3
(sizeX, size, size
); }
en,it worked fine as I want,but all my drag list in uipanel are wrong,the cliprect is not correct,their children out the clip rect and still visible,how can I do to make it correct.I use NGUI ver1.82.Waitting for help,thank you.