Hey,
I found an reproducible bug, that can prevent you from creating a new animation clip or sprite based game objects in a scene.
- Create a new project
- Import tk2d
- Delete _demo folder
- Create only Sprite Collections with platform specifics
- Recreate Index
- No Collection found Error will appear
What happens:
tk2dSpriteGuiUtility.GetDefaultSpriteCollection() will be evoked but returns null, because of the exceptions while iterating through the tk2d index.
if (!indexEntry.managedSpriteCollection && indexEntry.spriteNames != null)
The reference collection is a not managed but does not contain spriteNames. The platform specifics is managed and contains names.
Further tk2dSpriteAnimationClip.CreateNewClip() does not validate a null return and will throw an Editor-Error
clip.frames[0].spriteCollection = tk2dSpriteGuiUtility.GetDefaultSpriteCollection();
My current workaround is to create a decoy SpriteCollection with only one sprite.
If needed I could attach my Editor Debug Log for reference.