Search Unity

Problem with display a texture

Discussion in '2D' started by ABCpt, Nov 17, 2013.

  1. ABCpt

    ABCpt

    Joined:
    Nov 16, 2013
    Posts:
    6
    I create the Texture2D at runtime. In the preview window and on scene it is not displayed correctly.
    What could be wrong?
     

    Attached Files:

    Last edited: Nov 17, 2013
  2. ABCpt

    ABCpt

    Joined:
    Nov 16, 2013
    Posts:
    6
    I found the solution in settings of mipmaps:

    Texture2D newTexture = new Texture2D(width, height, TextureFormat.ARGB32, false);
     
    Last edited: Nov 18, 2013