public Texture2D topleft; //This contains the original GUI.DrawTexture() -texture. Texture type is Editor GUI or Legacy GUI
public UIPanel p; //This is the panel to where I try to addChildren
...
...
//The Draw Code
UITexture textureToBeDrawnOnScreen = NGUITools.AddChild<UITexture>(p.gameObject);
textureToBeDrawnOnScreen.mainTexture = topleft;
textureToBeDrawnOnScreen.MakePixelPerfect ();
// This does not help either
// textureToBeDrawnOnScreen.transform.localScale = (new Vector3 (1f, 1f, 1f));
// What I am attempting to do is port GUI.DrawTexture(new Rect(0, 0, topleft.width, topleft.height), topleft); to NGUI.