2D Toolkit Forum

2D Toolkit => Releases => Topic started by: unikronsoftware on June 18, 2013, 06:25:54 pm

Title: 2D Toolkit 2.0 final + hotfix 2
Post by: unikronsoftware on June 18, 2013, 06:25:54 pm
Please read the migration guide before updating. 2D Toolkit 2.0 is not API compatible with 1.x.
http://unikronsoftware.com/2dtoolkit/docs/2.00/migration_guide.html

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


Another quick hotfix to fix some critical issues that could affect a very small number of users.

What's new

Bug fixes and improvements
Title: Re: 2D Toolkit 2.0 final + hotfix 2
Post by: TekuStudios on June 18, 2013, 06:36:56 pm
Nice! Is it submitted to the Asset Store?
Title: Re: 2D Toolkit 2.0 final + hotfix 2
Post by: unikronsoftware on June 18, 2013, 06:41:30 pm
Yes it is
Title: Re: 2D Toolkit 2.0 final + hotfix 2
Post by: TekuStudios on June 18, 2013, 06:41:49 pm
Perfect.
Title: Re: 2D Toolkit 2.0 final + hotfix 2
Post by: Afro-Ninja on June 18, 2013, 09:02:18 pm
hi quick question, are you still planning a lighting add-on for 2dtk? and if so will it integrate with the existing sprite system or require a new kind of component? (such as '2dtk lit sprite' or '2dtk lit animated sprite')

to my knowledge I can have a light source affect all sprites tied to a single material/atlas, but we can't currently have per-object lighting?
Title: Re: 2D Toolkit 2.0 final + hotfix 2
Post by: unikronsoftware on June 18, 2013, 10:25:39 pm
Yes - still planning the lighting add-on. Sadly I haven't had enough time to complete it :(

You will simply need to change the material on the sprite collection atlas for all lit sprites. The light sources need a separate material on them. Apart from that everything just works as expected.
Title: Re: 2D Toolkit 2.0 final + hotfix 2
Post by: MaaS on June 28, 2013, 11:12:17 am
Just a suggestion for the sprite gizmo and for the sprite collection anchor position...

I use bigger images for my sprites as I now they will be trimmed later when composing the atlas, but then, the gizmo/handle for that sprite is way bigger than the sprite itself.

Both handle and anchoring seems to use the bounds of the original image as size, not the trimmed bounds as the size of the sprite (or the mesh bounds if you preffer). I dont say this should be that way always (I use the anchor position on my benefit sometime), but a option for gizmos or anchoring (like when "upper center") using the sprite final bounds if trimmed, would be great.

Thanks!!  ;)

Title: Re: 2D Toolkit 2.0 final + hotfix 2
Post by: unikronsoftware on July 05, 2013, 01:58:38 pm
@MaaS - I was about to make this switchable in preferences and then realised its going to be a bit more of a headache than I'd like it to be. Its really easy to switch though... in
tk2dSprite.cs
OnDrawGizmos
untrimmedBoundsData -> boundsData

tk2dSpriteEditor.cs
OnSceneGUI
GetUntrimmedBounds -> GetBounds
untrimmedBoundsData -> boundsData

That's it :)