Hello Guest

Author Topic: 2D Toolkit 2.5.5 - DO NOT DOWNLOAD  (Read 22186 times)


  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
2D Toolkit 2.5.5 - DO NOT DOWNLOAD
« on: December 29, 2015, 12:49:14 am »

Please read the migration guide before updating. 2D Toolkit 2.x is not API compatible with 1.x.

Documentation available at:

Be sure to run "Setup for JavaScript" after importing if you're using JavaScript/UnityScript or Boo.

What's new
  • Support for flat colors instead of interpolated colors in a tilemap
  • Generate normalized UVs - used in tilemap to simplify creating procedurally / shader animated tiles
  • Official support for Unity Windows Mobile and Windows Store in Unity 5
  • Linked sprite collections - allows creating parallel atlases for normal maps, etc. that match the layout of the base atlas. Docs here
  • Basic post build sprite collection callback, tk2dSpriteCollectionBuilder.OnPostBuildSpriteCollection to be notified when a sprite collection is built.
  • Updated to work with Unity 4.6 and 5.0 (Hierarchy "Create" menu moved into "2D Objects")
  • Exported with Unity 4.6.8f1. Previous Unity versions are not officially supported but all 4.x should work, we will fix issues if they arise. 3.x versions are no longer supported.

Bug fixes and improvements
  • Fixed compile issue in Unity 4.7
  • Added workaround for difference in UnityEditor.SetDirty behaviour in Unity 5.3
  • Fixed menu not appearing in correct location in Unity 5.1
  • Input field masks properly on Android
  • Clear dictionary when sprite collection is rebuilt
  • tk2dUILayoutContainer editor bug
  • Fixed LoadAssetAtPath so it doesn't complain in Unity 5
  • Fixed tilemap bug introduced in 2.5.2
  • Unity 5 sprite disappearing bug fixed
  • Fixed bug with tk2dUITextInput when with platform specific fonts.
  • Dont complain about null fonts that dont need material instances.
  • tk2dTextMesh can now be resized in the viewport when word wrap is enabled.
  • MarkDynamic on dynamic meshes
  • Fixed allocation in tk2dSpriteAttachPoint
  • Unity free skin bugfix
  • Confirmation before Setup for JS
  • Scrollablearea divide by zero
  • iOS workaround for Unity bug (keyboard.text behaves differently on iOS than all other platforms)
  • Fixed a null reference error going from lit to unlit materials
  • Fixed DX11 1/2 texel offset tk2dCamera bug
  • Menu option to rebuild all sprites (when they disappear) until there is a better solution
  • sprite collection editor, added scrollbar to attach point list
  • Added iPhone6 and 6+ resolutions to tk2dCamera

« Last Edit: December 31, 2015, 01:54:53 pm by unikronsoftware »


  • 2D Toolkit
  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: 2D Toolkit 2.5.5
« Reply #1 on: December 30, 2015, 03:54:34 am »
Good to see there is a new version, but i found that when I'm using Unity3d 5.3.1p1 version with 2D Toolkit 2.5.5, my Unity crashes when I just change PreMultiplied Alpha and Commit. Do you have any idea on this or do you aware of this problem?

I think I found the reason why it crashes, in tk2dUtil.cs, I found that the "SetDirty" functions keep pointing back to itself due to the "UNITY_EDITOR" pragma, I change it to as below and it seems solve my problem.

   // Replicate old pre-5.3 behaviour
   public static void SetDirty(UnityEngine.Object @object)
      //tk2dUtil.SetDirty(@object);  //take away this as it keep pointing back to itself

#if (UNITY_5_3 || UNITY_5_4 || UNITY_5_6 || UNITY_5_7 || UNITY_5_8 || UNITY_5_9 || UNITY_6_0)
      if (!string.IsNullOrEmpty(UnityEditor.AssetDatabase.GetAssetPath(@object)))
         string scenePath = UnityEditor.AssetDatabase.GetAssetOrScenePath(@object);
         var scene = UnityEditor.SceneManagement.EditorSceneManager.GetSceneByPath(scenePath);
         if (scene.IsValid())
      EditorUtility.SetDirty(@object); //added this so it still functioning for previous version.

#endif  // UNITY_EDITOR
« Last Edit: December 30, 2015, 06:12:24 am by kenglou.lee »


  • 2D Toolkit
  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: 2D Toolkit 2.5.5
« Reply #2 on: December 30, 2015, 11:58:50 pm »
@kenglou.lee Thank you for your fix, have the same issue while committing the sprite collection.


  • 2D Toolkit
  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: 2D Toolkit 2.5.5
« Reply #3 on: December 31, 2015, 11:58:23 am »
I too also get a crash when hitting Commit in any of my sprite collections ( Unity 5.3.1p1 ).

EDIT: kenglou.lee's fix seems to work, thanks :)
« Last Edit: December 31, 2015, 12:02:21 pm by TheMightyGit »


  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 2.5.5 - DO NOT DOWNLOAD
« Reply #4 on: December 31, 2015, 01:57:18 pm »
Really sorry for the issue folks :(
Released 2.5.6 that sorts it out.