Hello Guest

Author Topic: 2D Toolkit 2.2 beta 1  (Read 75398 times)

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
2D Toolkit 2.2 beta 1
« on: August 15, 2013, 08:46:22 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.20/migration_guide.html

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


What's new
  • Render Layers - you can now specify render layer values on sprites and text meshes, allowing you to explicitly order sprites which are at the same z value.
  • tk2dUI - you can now use multiple cameras! Add a tk2dUICamera behaviour to any cameras that require UI processing
  • tk2dUILayout and tk2dUILayoutSizer - lets you set up much more complex UIs than previously possible. Also enables for scalable UIs that resize properly for different resolutions. Docs:
  • tk2dUI - brand new default skin and prefabs, all set up using the Layout system for even quicker workflow
  • tk2dUI - new demos, webplayers below!
  • tk2dUI - added a lot more method bindings using the "Drop target" event - all currently exposed c# events can now also be accessed by selecting a function name in the inspector.
  • tk2dTextMesh no longer requires a commit after changing properties. The changed properties are queued up and flushed before the frame is rendered. You can still call Commit, and this flushes the queue straight away.
  • tilemap tiles can now be rotated. This is just a flag for now, but you can get all possible 90 degree rotations by stacking rotations and flips

Bug fixes and improvements
  • When a duplicate sprite is dropped in the sprite collection editor, ask what to do. Allows you to drop a folder and just add the new sprites.
  • Scrollbar distance bugfix
  • Playmaker PlayAnimation action fixed
  • Windows phone 8 rotation matrix
  • Default sprite collection size is now 2048. 1024 is no longer a sensible minimum. No one targets iPhone3G anymore, right?
  • tk2dTextMesh - GetEstimatedBounds will return a Bounds that should match the mesh bounds.
  • Fixed a few missing SetDirtys that were causing issues in Unity 4.x
« Last Edit: August 15, 2013, 10:51:05 pm by unikronsoftware »

Mikael1987

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: 2D Toolkit 2.2 beta 1
« Reply #1 on: August 15, 2013, 09:01:21 pm »
Thank you :)

hippocoder

  • Guest
Re: 2D Toolkit 2.2 beta 1
« Reply #2 on: August 15, 2013, 09:07:29 pm »
Really great update.

One thing our artist was moaning about recently is, he uses hundreds of 16x16 tiles and we were wondering if there's a way to zoom in on those tiles, or have a scratch pad of tiles? :)

funshark

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
    • portfolio
Re: 2D Toolkit 2.2 beta 1
« Reply #3 on: August 15, 2013, 09:47:06 pm »
That is pretty good news!

outtoplay

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: 2D Toolkit 2.2 beta 1
« Reply #4 on: August 15, 2013, 10:22:34 pm »
Terrific!  Wonderful work to a constantly improving toolset.  Digital beers all around!

profanicus

  • 2D Toolkit
  • Full Member
  • *
  • Posts: 167
    • View Profile
Re: 2D Toolkit 2.2 beta 1
« Reply #5 on: August 15, 2013, 11:35:40 pm »
  • Default sprite collection size is now 2048. 1024 is no longer a sensible minimum. No one targets iPhone3G anymore, right?

Hmm I thought people still targeted the 3GS as it uses iOS6 (and has a 1024 max texture size). Or am I wasting my time supporting it?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 2.2 beta 1
« Reply #6 on: August 15, 2013, 11:45:22 pm »
  • Default sprite collection size is now 2048. 1024 is no longer a sensible minimum. No one targets iPhone3G anymore, right?

Hmm I thought people still targeted the 3GS as it uses iOS6 (and has a 1024 max texture size). Or am I wasting my time supporting it?

Isn't iPhone3GS max texture size 2048? Its got pretty much the same gfx chip as the iPhone4 in it. I haven't got a device handy, but all the benchmarks I can find online say max texture size on 3GS = 2048. Am I mistaken?

profanicus

  • 2D Toolkit
  • Full Member
  • *
  • Posts: 167
    • View Profile
Re: 2D Toolkit 2.2 beta 1
« Reply #7 on: August 15, 2013, 11:50:09 pm »
Oh, I have been going off the list on iosres.com which claims it is 1024. Maybe they are wrong! I foolishly didn't check any other sources.

edit: they have a link at the bottom that goes to the actual texture limits and it is 2048, you are right. As you were. :)
« Last Edit: August 15, 2013, 11:52:41 pm by profanicus »

ijijn

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: 2D Toolkit 2.2 beta 1
« Reply #8 on: August 16, 2013, 04:11:56 am »
Thank you for another amazing update! I'm particularly interested in this new Layout business.  :)

ij

x8105

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 85
    • View Profile
Re: 2D Toolkit 2.2 beta 1
« Reply #9 on: August 16, 2013, 05:07:56 am »
Render Layers - AWESOME~
tk2dUI Multiple Cameras - SWEET!
tk2dUILayout and tk2dUILayoutSizer .... Speechless...
tk2dUI Skin LAyout betterworkflow... O M G!
tk2dUI Demo's... enh
tk2dTextMesh no longer requires a commit... I LOVE YOU!
tilemap tiles can now be rotated. I LOVE LAMP!

kremedved

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: 2D Toolkit 2.2 beta 1
« Reply #10 on: August 17, 2013, 05:37:16 pm »
I have error, when i start scene "4 - UI Masks".

Quote
NullReferenceException: Object reference not set to an instance of an object
tk2dUIDemo2Controller.Start () (at Assets/TK2DROOT/tk2dUI_demo/tk2dUIDemo2Controller.cs:29)

rectMin[0] = windowLayout.GetMinBounds();
« Last Edit: August 17, 2013, 05:48:17 pm by kremedved »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 2.2 beta 1
« Reply #11 on: August 17, 2013, 05:51:29 pm »
I have error, when i start scene "4 - UI Masks".

Quote
NullReferenceException: Object reference not set to an instance of an object
tk2dUIDemo2Controller.Start () (at Assets/TK2DROOT/tk2dUI_demo/tk2dUIDemo2Controller.cs:29)

rectMin[0] = windowLayout.GetMinBounds();

Unity version? Do you get the same result in an empty project?

kremedved

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: 2D Toolkit 2.2 beta 1
« Reply #12 on: August 17, 2013, 07:43:47 pm »
I have error, when i start scene "4 - UI Masks".

Quote
NullReferenceException: Object reference not set to an instance of an object
tk2dUIDemo2Controller.Start () (at Assets/TK2DROOT/tk2dUI_demo/tk2dUIDemo2Controller.cs:29)

rectMin[0] = windowLayout.GetMinBounds();

Unity version? Do you get the same result in an empty project?

4.2. Yes.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 2.2 beta 1
« Reply #13 on: August 17, 2013, 08:30:47 pm »
Sorry I misread your original question. That is indeed a bug - that scene isn't meant to have any scripts on there at all, and I never tested Playing it!

landon912

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: 2D Toolkit 2.2 beta 1
« Reply #14 on: August 18, 2013, 05:00:06 pm »
Nice Update!