Hello Guest

Author Topic: 2D Toolkit 2.2 final  (Read 28311 times)

x8105

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 85
    • View Profile
Re: 2D Toolkit 2.2 final
« Reply #15 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

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 2.2 final
« Reply #16 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.

korn3l

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: 2D Toolkit 2.2 final
« Reply #17 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.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 2.2 final
« Reply #18 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.

korn3l

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: 2D Toolkit 2.2 final
« Reply #19 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.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 2.2 final
« Reply #20 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.

WingedS

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: 2D Toolkit 2.2 final
« Reply #21 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.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 2.2 final
« Reply #22 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.

Litherad

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: 2D Toolkit 2.2 final
« Reply #23 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?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 2.2 final
« Reply #24 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.

idpokute

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: 2D Toolkit 2.2 final
« Reply #25 on: October 08, 2013, 03:47:40 pm »
Just wanna say "Thank you so much x 1000 " You guys rock!

FootprintGames

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: 2D Toolkit 2.2 final
« Reply #26 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

« Last Edit: October 21, 2013, 11:13:20 am by FootprintGames »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 2.2 final
« Reply #27 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



You will need to restart, and then run 2D Toolkit > Setup for JS again. You will need to do that every time you update.

FootprintGames

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: 2D Toolkit 2.2 final
« Reply #28 on: October 22, 2013, 01:37:34 pm »
Done. Here's the result


unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 2.2 final
« Reply #29 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