Yeah - this happens to me on NGUI 3.0.5 with Unity 4.2.2f1.
Reproduction steps:
New project, import NGUI, then try to delete a sprite from the scifi atlas and get an index out of range exception.
Tried the same thing with the fantasy atlas and was able to delete a sprite just fine - so as you say, it's just the scifi atlas itself, not NGUI.
Not gonna lie - I've totally been ripping off the NGUI example assets in my current project
(It's not on the store or anything, I'm just learning at the moment.)
I wanted to add a pause button sprite to the scifi atlas and started getting this error. Good to know it's just the the atlas itself - I thought I was doing something wrong or seeing a problem with NGUI.
Speaking of which - are we allowed to use the NGUI example assets in commercial work?
NGUI 3.0.5 stack trace:
IndexOutOfRangeException
: Array index
is out of range
.UIAtlasMaker.ExtractSprites (.UIAtlas atlas, System.Collections.Generic.List`1 finalSprites) (at Assets/NGUI/Scripts/Editor/UIAtlasMaker.cs:423)
UIAtlasMaker.OnGUI () (at Assets/NGUI/Scripts/Editor/UIAtlasMaker.cs:867)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Applications/buildAgent/work/c514da0c8183631c/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)