Hello Guest

Author Topic: Problem when creating PNG atlases on 2.3  (Read 4225 times)

imkc

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 5
    • View Profile
Problem when creating PNG atlases on 2.3
« on: November 15, 2013, 02:33:56 am »
Hi,

I tried to change one of the old atlas to PNG atlas, but I got the following message:

IndexOutOfRangeException: Array index is out of range.
tk2dSpriteCollectionBuilder.Rebuild (.tk2dSpriteCollection gen) (at Assets/TK2DROOT/tk2d/Editor/Sprites/tk2dSpriteCollectionBuilder.cs:1298)
tk2dSpriteCollectionEditorPopup.Commit () (at Assets/TK2DROOT/tk2d/Editor/Sprites/SpriteCollectionEditor/tk2dSpriteCollectionEditorPopup.cs:446)
tk2dSpriteCollectionEditorPopup.DrawToolbar () (at Assets/TK2DROOT/tk2d/Editor/Sprites/SpriteCollectionEditor/tk2dSpriteCollectionEditorPopup.cs:436)
tk2dSpriteCollectionEditorPopup.OnGUI () (at Assets/TK2DROOT/tk2d/Editor/Sprites/SpriteCollectionEditor/tk2dSpriteCollectionEditorPopup.cs:889)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)

Is there anything I missed?
btw, it is on Unity 4.3.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Problem when creating PNG atlases on 2.3
« Reply #1 on: November 15, 2013, 10:49:44 am »
Its a bug that will be fixed in the next version. There are 2 cases where png atlases fail currently as far as I can tell - when you have multiple materials (overrides) and atlas spanning is turned on.