Reloading texture2d from code

hi im using a script to change a texture2d at runtime (painter app), is there a way to reset all the chagnes made with the painter? like Reloading but at runtime.
please help :slight_smile:

How about using Texture2D.LoadImage()?

http://unity3d.com/support/documentation/ScriptReference/Texture2D.LoadImage.html

Or another way you might try is using WWW.texture

http://unity3d.com/support/documentation/ScriptReference/WWW-texture.html

Well i got it from another post:

mainBG.SetPixels(mainBGSource.GetPixels());