Hello Guest

Author Topic: Error while creating collection  (Read 4224 times)

ThomasH

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
Error while creating collection
« on: May 27, 2013, 03:52:52 pm »
I want to create a sprite collection spanning over 4 atlasses containing 4 images of 1920x1200. When committing, I get the following error:

Code: [Select]
MissingReferenceException: The object of type 'Texture2D' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEngine.Texture.get_height () (at C:/BuildAgent/work/7535de4ca26c26ac/Runtime/ExportGenerated/Editor/Graphics.cs:683)
tk2dSpriteCollectionBuilder.Rebuild (.tk2dSpriteCollection gen) (at Assets/Extensions/TK2DROOT/tk2d/Editor/Sprites/tk2dSpriteCollectionBuilder.cs:923)
tk2dSpriteCollectionEditorPopup.Commit () (at Assets/Extensions/TK2DROOT/tk2d/Editor/Sprites/SpriteCollectionEditor/tk2dSpriteCollectionEditorPopup.cs:437)
tk2dSpriteCollectionEditorPopup.DrawToolbar () (at Assets/Extensions/TK2DROOT/tk2d/Editor/Sprites/SpriteCollectionEditor/tk2dSpriteCollectionEditorPopup.cs:427)
tk2dSpriteCollectionEditorPopup.OnGUI () (at Assets/Extensions/TK2DROOT/tk2d/Editor/Sprites/SpriteCollectionEditor/tk2dSpriteCollectionEditorPopup.cs:826)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Applications/buildAgent/work/b59ae78cff80e584/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)

Any help appreciated  ;)

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Error while creating collection
« Reply #1 on: May 27, 2013, 04:25:10 pm »
Its an incompatibility with Unity 4.1x, fixed in tk2d 1.92 + patch 1.