- Home /
Deployed Android Texture2d image scrambled
When I draw a Texture2D using GUI.DrawTexture it looks great in Unity. However when I deploy to my Android test device the image is scrambled and does not display correctly. How can I fix this? Here is the code I'm using.
public Texture2D ControlImage{get;set;}
// Use this for initialization
void Start ()
{
ControlImage = Instantiate(Resources.Load("JoystickThumb")) as Texture2D;
}
// Update is called once per frame
void Update () {
}
void OnGUI()
{
GUI.DrawTexture(new Rect(0,200,256,256),ControlImage);
}
Comment