Hi,
I am working in unity3d in windows phone 8 and I have a lot of .bytes image files. When i load image from file, it loads perfectly and is visible in camera. When I press the Device Home button and comes back in game , The image gets corrupted or invisible.
Below is the code :
TextAsset text = Resources.Load("image", typeof(TextAsset)) as TextAsset;
Texture2D texture = new Texture2D(0, 0, TextureFormat.RGB565, false);
texture.LoadImage(text.bytes);
texture.wrapMode = TextureWrapMode.Clamp;
texture.filterMode = FilterMode.Bilinear;
texture.Apply(false, true);