Hello Guest

Author Topic: 2D Toolkit 2.1 final  (Read 20565 times)

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
2D Toolkit 2.1 final
« on: July 26, 2013, 07:17:55 pm »
Please read the migration guide before updating. 2D Toolkit 2.x is not API compatible with 1.x.
http://unikronsoftware.com/2dtoolkit/docs/2.10/migration_guide.html

Documentation available at:
http://unikronsoftware.com/2dtoolkit/docs/2.10


Check out our Whack-a-mole tutorial:
http://unikronsoftware.com/2dtoolkit/doc/2.10/tutorial/whack_a_mole/index.html


What's new
  • Documentation has been updated for 2.1 and the first part of the whack-a-mole tutorial has now been published.
  • UI Item sendmessage call wrapped - you can now select methods from a dropdown instead of typing them out. A default parameter is also sent.
  • Tilemap demo added.
  • Attach point demo added.
  • Tilemap editor - Flipped tile support.
  • Tilemap editor - Unlimited scratchpad to store templates / custom tile layouts.
  • Tilemap editor - Tile paint mode massively improved with new UI, vertex color paint supports individual channels.
  • Tilemap editor - Instanced prefabs are saved. You can change properties on them and they will be remembered.
  • Tilemap editor - Physics material can be set up per tilemap layer.
  • Attach points - You can now set up attach points directly on the sprites. You can attach other sprites to these attach points, or simply use them as markers in your code. When set up on a frames of animation, these will be animated together with the frames.
  • Sprite collection builder - duplicate textures are now removed, textures are compared by a contents hash.
  • Sprite collection global texture rescale.
  • tk2dCamera v3 - now much better than before. Preview of native resolution, preview resolution in viewport.
  • tk2dCamera v3 - Uses game view resolution/aspectratio as "preview resolution" when present, no need to enter resolutions twice.
  • tk2dCamera v3 - Zoom Factor (replacing zoom scale), works with or without overrides
  • tk2dCamera v3 - Size set up as "ortho size" or "pixels per meter". Default legacy size, Pixels per meter = 1
  • tk2dCamera v3 - Works on perspective camera as well, allowing for 1:1 to be exact at any resolution
  • tk2dCamera v3 - hides the Unity camera implemnentation to avoid confusion
  • tk2dCamera v3 - supports multiple cameras with different sizes in scene, uses unity layers to VERY quickly detect the right camera for a sprite / object.
  • tk2dCamera v3 - Override UI revamped.
  • tk2dCameraAnchor - Works with any camera type, including perspective.
  • Sprite collection / font editor - will automatically detect camera settings if a tk2dCamera is found in the scene, less room for error. Set up exactly the same as a tk2dCamera.
  • Static sprite batcher - option to sort by camera, allows correct sorting when not viewed straight along z axis.
  • PlayMaker actions included - unpack from tk2d/Goodies/PlayMaker Actions

Bug fixes and improvements
  • tk2dCamera - added "ScaledResolution" back in, marked as obsolete.
  • tk2dButton (legacy) - fixed for Unity 4.2
  • tk2dCamera - fixed for Unity 4.2
  • tk2dUIScrollableArea - swipe cancelled properly when Disabled.
  • tk2dCamera - anchored viewport clipping fixed, wasn't possible to re-enable.
  • Polygon editor, deselect vertex after performing any major operations, deleting, flipping, etc.
  • Updated tk2dCamera script docs
  • Tilemap editor - more undo fixes. Should've got everything now. When entering edit mode, chunk gameobjects are created for all chunks. This is not a bug, and required for undo to work properly. Unnecessary ones are deleted when committed.
  • Tilemap editor - vertical scroll wheel works when mouse is over tilemap palette.
  • Tilemap editor - Creation stage made far more sensible, and replaced sprite collection picker.
  • tk2dCamera - default far clip plane = 50.
  • tk2d update checker window - warn when in webplayer.
  • Sprite collection editor - copy geometry islands correctly.
  • Removed beta tag from tilemap editor.
  • Word wrap correctly considers spacing.
  • Convert to ui sprite animator moved to UI code, dependency in core tk2d removed.
  • Tilemap colliders built properly, even if not committed.
  • Tilemap editor - fixed a lot of cases where modified prefab data could be lost.
  • Tilemap editor - fixed undo which failed in some situations leaving orphaned chunks of data.
  • Tilemap editor - Prefabs can be spawned at runtime using SetTile.
  • tk2dCamera - removed half pixel offset from camera anchors on Windows/D3D.
  • tk2dCamera - Patched for missing screenResolution / ScreenOffset functions, marked as Obsolete.
  • tk2dCamera - Fixed rogue memory allocation at runtime.
  • Packed fonts fixed.
  • Text mesh inline styling bugfix when used from code.
  • Sprite selector bugfix.
  • UI scrollablearea fixed to work the same regardless of resolution.
  • UI scrollablearea - OnScroll is now triggered when expected.
  • UI scrollablearea - MeasureContentLength, for when you just want to fit the content you've dynamically created at runtime.
  • Diced texture parameters are shown in the editor - easier to make decisions on dice size.
  • Font - cope with invalid characters.
  • Tilemap - bugfix with color interpolation at boundaries.
  • Sprites - Scene widget works at any axis.
  • UI demo - old sans font replaced.
  • And many many more bugfixes - Let us know if a bug you reported isn't fixed.

Known issues
  • Windows Phone 8 - static sprite batcher not working properly when committed. Keep it uncommitted for now while we fix this.

kebrus

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 58
    • View Profile
Re: 2D Toolkit 2.1 final
« Reply #1 on: July 30, 2013, 03:12:01 pm »
Creating a new scene, adding a new 2dtk camera and saving creates a odd behavior, now the scene always shows up unsaved (with the "*" suffix in the title). I don't know if this is causing any problems but i had unity crash on me and not saving a specific scene that i know for sure it was saved.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 2.1 final
« Reply #2 on: July 30, 2013, 03:19:08 pm »
@kebrus - that is caused by assigning some value to the Unity camera on update. The problem is, reading that value to check if its changed before assigning it, allocates memory. I thought this was the lesser of the evils here, but I'll investigate other options in the next release.

copo

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: 2D Toolkit 2.1 final
« Reply #3 on: August 01, 2013, 03:34:26 am »
I think I found a completely non-critical issue, but I'll point it out for a future release. 

When I force a custom preview resolution for a tk2dCamera, it shows a warning message about the resolution not matching the selected game view aspect ratio, even when it does match.  The problem is that the preview aspect is inverted from the game view aspect when they are compared in tk2dCameraEditor code.

It doesn't appear to affect anything aside from showing the error message, but I figured it could cause confusion.

Thanks!


ww_great

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: 2D Toolkit 2.1 final
« Reply #4 on: August 02, 2013, 08:27:25 am »
How can I find the download link for this package?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 2.1 final
« Reply #5 on: August 02, 2013, 09:24:36 am »
You can download it on the asset store, or if you register your invoice number here you can get it from here as well. Instructions: http://unikronsoftware.com/2dtoolkit/forum/index.php?index.php/topic,34.0.html

jeong1135

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: 2D Toolkit 2.1 final
« Reply #6 on: August 03, 2013, 09:49:51 am »
Absolutely love the tutorial! I just bought 2D Toolkit yesterday (lucky me for buying it right after the tutorial came out) and with it I started from zero knowledge and with just an hour of reading tutorial I'm in great shape. I am definitely looking forward for other parts!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 2.1 final
« Reply #7 on: August 03, 2013, 10:47:05 am »
Absolutely love the tutorial! I just bought 2D Toolkit yesterday (lucky me for buying it right after the tutorial came out) and with it I started from zero knowledge and with just an hour of reading tutorial I'm in great shape. I am definitely looking forward for other parts!


Great! Thanks for the feedback. The next part of the tutorial will be released soon - it takes a while to clear up the workflow so its nice and easy to follow, we want to make it as clear as the first part if not better :)

RakeshChatra

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: 2D Toolkit 2.1 final
« Reply #8 on: August 08, 2013, 11:06:48 am »
How to access the animation of the another gameObject in unity 2DToolkit ?? I am trying to access the gameObject's animation from the manager class.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 2.1 final
« Reply #9 on: August 08, 2013, 12:41:40 pm »
How to access the animation of the another gameObject in unity 2DToolkit ?? I am trying to access the gameObject's animation from the manager class.

Not sure what manager you mean here, but you get gameobjects / components the same way you do that in Unity - GameObject.Find / GetComponent /etc. Also, please post questions in the forum.