Hello Guest

Author Topic: 2D Toolkit 2.5.7  (Read 2521 times)

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9567
    • View Profile
2D Toolkit 2.5.7
« on: December 04, 2016, 12:26:07 PM »
Please read the migration guide before updating. 2D Toolkit 2.x is not API compatible with 1.x.
http://2dtoolkit.com/docs/2.4/migration_guide.html

Documentation available at:
http://2dtoolkit.com/docs/2.5


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

What's new
  • Lots of bug fixes and improvements
  • Updated to work with Unity 5.4 and 5.5
  • Exported in Unity 5.3. Previous versions of Unity are no longer supported

Bug fixes and improvements
  • Fixed tilemap prefab instantiation bug
  • Fixed tk2dCamera rotation issue, added support for WSA
  • Fixed issue with some inspectors not saving changes correctly in Unity 5.3+
  • Inertial scrolling fix for scrollable area
  • Removed platform specific functionality for WebPlayer, WP8 and Flash
  • Fixed negative box collider warning
  • Fixed input field string doubling up on Android
  • Rudimentary physics stripping to remove dependencies to 2D and/or 3D physics
  • Fixed deprecation warnings for Unity 5.4 and 5.5
  • Fixed texel size when atlas texture is globally scaled 0.5x or 0.25x
  • Editor collider rebuilder script - Don't rebuild when sprites have "user defined" colliders set
  • Texture importer supports "Sprite" textures as input in Unity 5.5
« Last Edit: January 26, 2017, 10:24:59 PM by unikronsoftware »

jmenossi

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: 2D Toolkit 2.5.7
« Reply #1 on: December 04, 2016, 07:09:35 PM »
Thanks a lot! You are great!  ;D

oug

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: 2D Toolkit 2.5.7
« Reply #2 on: December 04, 2016, 08:29:16 PM »
Yes! Amazing! I was just wondering when the big update would come! Thanks!!!

Sir_Rai

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: 2D Toolkit 2.5.7
« Reply #3 on: December 04, 2016, 09:33:27 PM »
I'm trying Unity 5.5.0f3  and I have imported the new 2D Toolkit 2.5.7 version to a new empty  project and trying to build the project causes compiler error:

Code: [Select]
Assets/TK2DROOT/tk2dTileMap/Code/tk2dTileMap.cs(225,3): error CS0103: The name `BuilderUtil' does not exist in the current context

Error building Player because scripts had compiler errors

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9567
    • View Profile
Re: 2D Toolkit 2.5.7
« Reply #4 on: December 04, 2016, 10:13:00 PM »
Ugh, my bad.
tk2dTileMapBuilderUtil.cs, line 4
Replace with #if true

I'll post an update later this week to fix this.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9567
    • View Profile
Re: 2D Toolkit 2.5.7
« Reply #5 on: December 04, 2016, 11:49:58 PM »
Updated the file above to 2.5.7.1 - fixing the build issue.

xcube

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: 2D Toolkit 2.5.7
« Reply #6 on: December 05, 2016, 06:43:05 PM »
Super!!!
Thanks  :)

fsadeq

  • 2D Toolkit
  • Sr. Member
  • *
  • Posts: 353
    • View Profile
Re: 2D Toolkit 2.5.7
« Reply #7 on: December 08, 2016, 11:35:14 PM »
After upgrading to this, I am getting runtime errors when changing a Sprite's sorting order:

Code: [Select]
InvalidOperationException: This cannot be used during play mode.
UnityEditor.SceneManagement.EditorSceneManager.MarkSceneDirty (Scene scene) (at /Users/builduser/buildslave/unity/build/artifacts/generated/common/editor/EditorSceneManagerBindings.gen.cs:156)
tk2dUtil.SetDirty (UnityEngine.Object object) (at Assets/TK2DROOT/tk2d/Code/tk2dUtil.cs:128)
tk2dBaseSprite.set_SortingOrder (Int32 value) (at Assets/TK2DROOT/tk2d/Code/Sprites/tk2dBaseSprite.cs:183)

Any ideas? Thanks.

SengiG

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: 2D Toolkit 2.5.7
« Reply #8 on: December 16, 2016, 09:45:30 AM »
Hi, we`ve got the same problem as fsadeq on preloaded image from steam

apparently you can fix this by simply checking whether is application is in play mode tk2dUtil.cs:

Code: [Select]
// Replicate old pre-5.3 behaviour
public static void SetDirty(UnityEngine.Object @object)
{
#if UNITY_EDITOR
UnityEditor.EditorUtility.SetDirty(@object);

#if (UNITY_5_3 || UNITY_5_4 || UNITY_5_6 || UNITY_5_7 || UNITY_5_8 || UNITY_5_9 || UNITY_6_0)
string objectPath = UnityEditor.AssetDatabase.GetAssetPath(@object);
if (string.IsNullOrEmpty(objectPath))
{
string scenePath = UnityEditor.AssetDatabase.GetAssetOrScenePath(@object);
var scene = UnityEditor.SceneManagement.EditorSceneManager.GetSceneByPath(scenePath);
if (scene.IsValid())
{
    if (!Application.isPlaying) {
        UnityEditor.SceneManagement.EditorSceneManager.MarkSceneDirty(scene);
    }
}
}
#endif

#endif // UNITY_EDITOR
}
« Last Edit: December 16, 2016, 09:53:20 AM by SengiG »

lolpolice

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: 2D Toolkit 2.5.7
« Reply #9 on: February 09, 2017, 03:09:15 PM »
Thankyou :)