2D Toolkit Forum

2D Toolkit => Releases => Topic started by: unikronsoftware on September 09, 2013, 06:23:00 pm

Title: 2D Toolkit 2.2 final
Post by: unikronsoftware on September 09, 2013, 06:23:00 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


This is the same version as 2.20 final + hotfix 0 on the asset store

What's new

Bug fixes and improvements
Title: Re: 2D Toolkit 2.2 final
Post by: weloveayaka on September 09, 2013, 06:33:20 pm
great! ;D
Title: Re: 2D Toolkit 2.2 final
Post by: tzamora on September 09, 2013, 06:43:39 pm
great, I love you!!! ...

Unikron, I dont know if this is the place to ask this but .....

What do you think about the new 2D features in unity 4.3?

I love 2dToolkit, it has been my plugin-partner in my jams and my ludum dares and in my job and everything !!

so, if you allow me to ask? in a simple response, what do you think about it? ... please remove this comment if you feel like it, I just want to hear your opinion and what do you see for the 2d toolkit future.

Thanks.
Title: Re: 2D Toolkit 2.2 final
Post by: n3rdloop on September 09, 2013, 07:16:21 pm
Thanks for this update!

I updated from 2.1 final to this. All is good but there is one issue, I can't interact with the scrolling menus.

2DToolkit tells me:
It is no longer necessary to hook up a camera to the tk2dUIManager. You can simply attach a tk2dUICamera script to the cameras that interact with UI.

And it takes action to add the script for me to my UI camera. What should I configure so my scrolling menus are back alive?

Sorry for the troubles and thanks again,
Title: Re: 2D Toolkit 2.2 final
Post by: jokjokstudios on September 09, 2013, 07:27:12 pm
Awesome! Thanks! :)
Title: Re: 2D Toolkit 2.2 final
Post by: Jason RT Bond on September 09, 2013, 07:40:26 pm
Awesome stuff :)

  • SortingOrder - you can now specify sorting orderon sprites and text meshes, allowing you to explicitly order sprites which are at the same z value.This used to be called RenderLayer in beta1

The documentation says "This corresponds to the renderer.sortingOrder property in Unity 4.3.". Can this feature be used with 4.2?
Title: Re: 2D Toolkit 2.2 final
Post by: unikronsoftware on September 09, 2013, 08:06:50 pm
Yup. Unity adds native support for SortingOrder in Unity 4.3, and we'll change to directly use that when they release 4.3. This is our workaround which behaves in a close enough way, but works in all other versions of Unity.
Title: Re: 2D Toolkit 2.2 final
Post by: Jason RT Bond on September 09, 2013, 09:46:06 pm
Yup. Unity adds native support for SortingOrder in Unity 4.3, and we'll change to directly use that when they release 4.3. This is our workaround which behaves in a close enough way, but works in all other versions of Unity.

Jolly good. Thanks  :)
Title: Re: 2D Toolkit 2.2 final
Post by: Beyonder on September 09, 2013, 10:55:21 pm
awesome stuff. I had just started to mess around with the UI layout things  :D
Title: Re: 2D Toolkit 2.2 final
Post by: kremedved on September 10, 2013, 10:23:10 am
Am I the only one to have problems with ClipCamera after the update from 2.1f + hotfix(unity 4.2)?
Title: Re: 2D Toolkit 2.2 final
Post by: unikronsoftware on September 10, 2013, 10:36:57 am
@kremedved - what problem?
Title: Re: 2D Toolkit 2.2 final
Post by: kremedved on September 10, 2013, 03:52:15 pm
It would take too long to explain. To cut it short, I need to change Y position of ClipCamera to make it work like in v2.1.
Title: Re: 2D Toolkit 2.2 final
Post by: fattie on September 10, 2013, 08:15:02 pm
OK, i got this problem ...

(http://s23.postimg.org/4nlyfwn3f/shad.png)

note that I had the shader in BOTH !! locations.   I trashed the one IN resources/, and moved the other one in there

then the project had maybe, oh, 10 places that were apparently using that other one ("pink squares") so I just clicked those over to the new one.
Title: Re: 2D Toolkit 2.2 final
Post by: unikronsoftware on September 10, 2013, 09:17:43 pm
You must've updated from a really old version... Unity doesn't match shaders up properly when updating, and if not in the right directories can cause issues.
Title: Re: 2D Toolkit 2.2 final
Post by: fattie on September 11, 2013, 07:26:31 am
Magnificent, thanks.  Yeah at one point about 3 updates ago I had a big "update gap" - so that explains it. THANKS
Title: Re: 2D Toolkit 2.2 final
Post by: x8105 on September 16, 2013, 12:37:08 pm
The tk2d ui scrollable area.... It has been jumping to World Origin of 0,0,0 at runtime, weird. Also is there any way to have it anchor in the middle center? just cannot seem to get accurate setup, maybe I am totally missing something
Title: Re: 2D Toolkit 2.2 final
Post by: unikronsoftware on September 16, 2013, 12:43:43 pm
Are you using the Layout version of it? Its much harder to break that than it is the normal version.
No, there isn't a way to have anchor in middle center - there are no plans to allow changing that from top left - the Layout system uses top left as origin, as is standard in any real life UI system.

Make a post in the private support forum if you'd like to discuss your specific use case further, I'm sure we can work out whats wrong in your set up.
Title: Re: 2D Toolkit 2.2 final
Post by: korn3l on September 19, 2013, 10:57:03 am
I upgraded to 2.2 and for some reason the TransparencySortMode resets to "Default" when I press play. I had to set the transparency sort mode manually in my start method. Any ideas why this happens ? I tested on an empty scene with just a tk2dCamera , no inherited config.
Cheers.
Title: Re: 2D Toolkit 2.2 final
Post by: unikronsoftware on September 19, 2013, 11:33:24 am
It is now configured in the tk2dCamera camera tab - no need to assign from your own script.
Title: Re: 2D Toolkit 2.2 final
Post by: korn3l on September 19, 2013, 01:49:54 pm
Sorry if I didn't make myself clear. I set the sort mode to orthographic in the inspector and when I press play it resets to default. I assing it in my script as a workaround.
Title: Re: 2D Toolkit 2.2 final
Post by: unikronsoftware on September 19, 2013, 02:04:22 pm
You're right. There is code to mark as dirty, but it clearly isn't doing it properly. Leave it with me to investigate this.
Title: Re: 2D Toolkit 2.2 final
Post by: WingedS on October 01, 2013, 06:26:19 am
Question about the sorting order... Does it increase draw calls? Currently sprites at different z axis = increase in draw calls.
Title: Re: 2D Toolkit 2.2 final
Post by: unikronsoftware on October 01, 2013, 11:35:54 am
Does the same thing. If you have multiple materials stacked in z / draw order, draw calls will increase.
Title: Re: 2D Toolkit 2.2 final
Post by: Litherad on October 08, 2013, 12:17:55 pm
I love using the toolkit, but I can't seem to figure out if it's possible to use arbitrarily sized tiles (or at least power of two). For example I have some corner tiles which are 64x64, and then a ground tile that is 128x64, is it possible to mix these?
Title: Re: 2D Toolkit 2.2 final
Post by: unikronsoftware on October 08, 2013, 02:20:45 pm
Yes and no - if you keep all the anchor points at the bottom left (one of the corners as opposed to the center), you could easily have one tile occupy the space of 2 tile spaces.... You won't be able to import these from a spritesheet though, as that expects evenly divided stuff.
Title: Re: 2D Toolkit 2.2 final
Post by: idpokute on October 08, 2013, 03:47:40 pm
Just wanna say "Thank you so much x 1000 " You guys rock!
Title: Re: 2D Toolkit 2.2 final
Post by: FootprintGames on October 21, 2013, 11:11:46 am
I'm trying to update from 2.1Final to 2.2Final but I'm getting a lot of errors.
Here's a screenshot

(http://img845.imageshack.us/img845/8941/5qeq.jpg)
Title: Re: 2D Toolkit 2.2 final
Post by: unikronsoftware on October 21, 2013, 11:26:37 am
I'm trying to update from 2.1Final to 2.2Final but I'm getting a lot of errors.
Here's a screenshot

(http://img845.imageshack.us/img845/8941/5qeq.jpg)

You will need to restart, and then run 2D Toolkit > Setup for JS again. You will need to do that every time you update.
Title: Re: 2D Toolkit 2.2 final
Post by: FootprintGames on October 22, 2013, 01:37:34 pm
Done. Here's the result

(http://img30.imageshack.us/img30/691/ozr.png)
Title: Re: 2D Toolkit 2.2 final
Post by: unikronsoftware on October 22, 2013, 02:58:12 pm
That error means the metadata on those files are broken - you can break them in so many ways. Do you have meta files on? Did you share stuff through dropbox, etc?

In this case it looks like there are duplicates of these files which are broken in those directories. If you don't use the tk2dSpriteAttachPoint, or tk2dUISpriteAnimator, the best bet would be to delete all occurrences of those files that failed the integrity check, reimport and re-run setup for JS. That should fix it. More details on upgrading when your meta files are broken here:
http://unikronsoftware.com/2dtoolkit/forum/index.php/topic,1685.15.html