Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

What does "Texture atlas needs textures to have Readable flag set." means?

Discussion in 'Scripting' started by Lee Zhi Fei, Mar 7, 2011.

  1. Lee Zhi Fei

    Lee Zhi Fei

    Joined:
    Apr 11, 2010
    Posts:
    100
    I'm using the PackTextures function, and Unity gave me this error when I click play... though I'm pretty sure there's no error inside the script. What does it means and what should I do about it?
     
  2. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    this means that the textures you want to pack must have the "get / set pixels" flag enabled, choose the texture to be an advanced type to enable this.

    if this is not set, the texture is never stored in ram only vram, as such you can not use it for packing as the cpu can't access it
     
  3. Lee Zhi Fei

    Lee Zhi Fei

    Joined:
    Apr 11, 2010
    Posts:
    100
    that solved it... thanks a lot!
     
  4. DarkSlash

    DarkSlash

    Joined:
    Sep 30, 2011
    Posts:
    127
    I set the texture as advance type and still getting that error... any idea? I use Unity 4.2
     
  5. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    You have to set read/write enabled to true, not just set it to Advanced.

    --Eric
     
    Brendonm17 likes this.
  6. DarkSlash

    DarkSlash

    Joined:
    Sep 30, 2011
    Posts:
    127
    I was just trying out all option combination when I found it! Thanks!! :)