- Home /
Exception: not implemented?
I don't understand what's going on here. I got the error "Exception: not Implemented, UnityEngine.Texture.set_width(Int32 value)......"
Here's my code:-
selStrings = new Texture[StackNum];
www = new WWW("file://" + Application.dataPath + "/Screenshots/ScreenShot" + Minus + ".png");
selStrings[Minus] = new Texture2D(0.1, 0.1, TextureFormat.RGB24, false);
Debug.Log(StackNum);
www.LoadImageIntoTexture(selStrings[Minus]);
selStrings[Minus].width = 800;
Everything was alright up until I tried to set the width of the texture. Am I doing something wrong here, or is it just a bug in Unity?
Comment
$$anonymous$$aybe because the .width function is read only? If so, how do I change the size of the texture?
@Sixakoo: you don't need to wonder if it's read-only, you can just look it up in the docs.
Answer by DaveA · Jul 14, 2011 at 05:42 AM
I think this is what you want: http://unity3d.com/support/documentation/ScriptReference/Texture2D.Resize.html