Author Topic: Cant create working atlases anymore  (Read 18141 times)

arkon3

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 71
    • View Profile
Cant create working atlases anymore
« on: May 19, 2014, 05:05:15 AM »
I was having trouble making atlases all of a sudden so just updated NGUI to the latest and the problem has not gone away. I have multiple problems firstly
any atlas I try and create, creates the main atlas bitmap as a unity4 sprite plus say I have a 1024 x 768 image in rgba format, in the atlas it is a quarter of that size! Why is the atlas maker shrinking the image.

Plus, I get the warning Unsupported texture format - needs to be ARGB32, RGBA32, RGB24 or Alpha8 when I add the texture, but these are textures I've been using fine with NGUI up until now.

Plus say I add a texture to the atlas, when I try and select it on a UISprite the sprite select wind opens but all the sprites are corrupted.

Any ideas? currently I've tried deleting the atlases and re creating them all to no avail.

*edit: all seems to be caused by having the project in Unity 2D mode if that helps.
« Last Edit: May 19, 2014, 05:52:43 AM by arkon3 »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile

arkon3

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 71
    • View Profile
Re: Cant create working atlases anymore
« Reply #2 on: May 19, 2014, 08:23:32 PM »
The root cause is unity not importing textures correctly in 2d mode. I've given a detailed bug report and repo to Unity. For anyone else with the problem
you need to not be in 2d mode when you import textures and you must not import them by dragging them into your project with finder to another finder window but drop them in directly to the unity editor. Otherwise you can't change the textures format and they all default and get stuck as 16 bit.