hi, i want to create a new plane (using code) with the same texture as the 'Sprite' widget created using NGUI.
I worked with it for some time and what i can get is a whole atlas texture (i use getcomponent<UISprite>().mainTexture ) but cant get the exact texture i really want in the atlas.
is there any ways to do this ?
Thanks for every help

-------------------------------------
Another question, how can i use the texture in the atlas for my current 'prefab' ( in my prefab i have texture set for the object but i dont know how to replace the texture with the one in the atlas)
thanks