- Home /
Question by
Skatola · Dec 06, 2015 at 08:57 PM ·
textureui imagenguiaspect ratio
scaling NGUI UItexture to screen size
HI, i'm losing my mind to try to do this with an NGUI UItexture. Previously i did that on ONGUI with this function:
GUI.DrawTexture(new Rect(0, 0, Screen.width, Screen.height), mytexture, ScaleMode.ScaleToFit, true);
it works perfectly, but now i need to do the same thing on a NGUI UItexture and it is so hard, there is a simple way like on ONGUI to do that? ScaleMode.ScaleToFit is amazing, but it work on ONGUI.DrawTexture only? thank you!
Comment