An image is fetched with www from disk. unityScript can read size of the image from disk. but, i am not able to use it as a button texture(button is not getting created). Here is the code. Can someone help?
var btnImg : WWW = new WWW("file://C:/sristi/sofa3seater_1.jpg"); yield btnImg; Debug.Log(btnImg.texture.width); GUI.Button ( Rect (bx,by,150,150), btnImg.texture );