Author Topic: Atlas destroyed,cannot recreate!!!  (Read 3333 times)

Landci

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Atlas destroyed,cannot recreate!!!
« on: June 10, 2014, 02:01:38 AM »
From time to time it happens that my whole atlas gets destroyed after adding a sprite to it.

I am on the newest Version 3.6.3b.

And i am not able to recreate it if i re-add all the sprites in it the atlas is still corrupted and not showing the proper sprites in the GUI.

Any known solutions for this issue???

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Atlas destroyed,cannot recreate!!!
« Reply #1 on: June 10, 2014, 02:49:24 AM »
Target platform? Atlas texture size? Target quality setting? Missing info there...

Unity can sometimes force your textures to get imported at lower size than the actual texture, which screws up NGUI. It may happen due to quality settings being set too low, or to target platform not supporting large size textures. For example GLES 1.1 / ARMv6 targets are limited to 1024x1024, and many mobiles are capped at 2048x2048. Only newest mobiles can go up to 4096x4096.

It's advisable to keep large textures outside of the atlas. Atlases are ideal for textures that are under 256x256 pixels.

Landci

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: Atlas destroyed,cannot recreate!!!
« Reply #2 on: June 10, 2014, 04:23:23 AM »
The atlas was still present but all the sprites in the GUI were messed up.
Atlas size was 1024x512.

I think i know now what caused it, i had some sprites with a too high resolution (1024x1024) in it which caused it to be too large to properly handle it. After downsizing i was able to recreate my atlas