Hello Guest

Author Topic: 2D Toolkit 2.0 beta 1  (Read 70256 times)

Moloen

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: 2D Toolkit 2.0 beta 1
« Reply #30 on: May 26, 2013, 04:16:46 pm »
Please read the migration guide before updating. 2D Toolkit 2.0 is not API compatible.
http://unikronsoftware.com/2dtoolkit/docs/200/

This link is currently not working.  It gives me a 404 error not found. Could you please re-upload the migration doc? (I'm on 1.92)

 I'd love to try out the new features from 2.0. By the way I'm SUPER excited that you integrated UI into your plugin!

thefiend

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: 2D Toolkit 2.0 beta 1
« Reply #31 on: May 26, 2013, 05:08:24 pm »
This link is currently not working.

Link is missing a period in between the 2 & 0.

Try this: http://unikronsoftware.com/2dtoolkit/docs/2.00/

Moloen

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: 2D Toolkit 2.0 beta 1
« Reply #32 on: May 26, 2013, 08:15:11 pm »
Doh! How did I not see that? By the way here's the direct link to the migration guide if anyone wants to know.

http://unikronsoftware.com/2dtoolkit/docs/2.00/migration_guide.html

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 2.0 beta 1
« Reply #33 on: May 26, 2013, 10:55:57 pm »
Updated the links thanks for pointing out that it was broken Moloen.

loofou

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: 2D Toolkit 2.0 beta 1
« Reply #34 on: May 27, 2013, 10:53:13 am »
Just one quick question about migrating textmeshes. I used the now gone "GetMeshDimensionsForString" method and can't find the alternative anywhere. I guess it's just renamed or in another class. Any help?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 2.0 beta 1
« Reply #35 on: May 27, 2013, 11:28:45 am »
@loofou - Thats an error, it will be fixed in the next beta.
You can add a function to redirect to -
tk2dTextGeomGen.GetMeshDimensionsForString( ... )


dustinbahr

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 76
    • View Profile
Re: 2D Toolkit 2.0 beta 1
« Reply #36 on: May 30, 2013, 05:29:02 pm »
Hello!

The 2.0 release migrated swimmingly, great guides!

I had a quick question though, does the "create sprite from selected texture" support platform settings in any way?
I wanted to use it for a background that only appears once, but even if that's the case, I still don't want a massively sized texture on older non-retina devices if possible.

Thanks, its looking awesome!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 2.0 beta 1
« Reply #37 on: May 30, 2013, 05:34:15 pm »
No it doesn't at the moment. Maybe in a future version, but the issue with platform related loading is things need to be in resources, etc. Hard to manage from the toolkits standpoint.

n1ngimi

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: 2D Toolkit 2.0 beta 1
« Reply #38 on: May 31, 2013, 07:00:54 am »
toggle button , When OnChange event , selectedIndex = ( before change Index )  <<

tk2dUIToggleButtonGroup.cs
127            if (toggleButton != selectedToggleButton)
128           {
129                if (OnChange != null) { OnChange(this); }
130                selectedToggleButton = toggleButton;
131                SetSelectedIndexFromSelectedToggleButton();
132           }

u can change
127            if (toggleButton != selectedToggleButton)
128           {
129                selectedToggleButton = toggleButton;
130                SetSelectedIndexFromSelectedToggleButton();
131            if (OnChange != null) { OnChange(this); }
132           }


unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 2.0 beta 1
« Reply #39 on: May 31, 2013, 10:37:14 am »
Thanks for that. It has been changed and will be in the next version.

reefG

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: 2D Toolkit 2.0 beta 1
« Reply #40 on: May 31, 2013, 10:58:50 am »
@loofou - Thats an error, it will be fixed in the next beta.
You can add a function to redirect to -
tk2dTextGeomGen.GetMeshDimensionsForString( ... )

Hello, I also have this issue, can you elaborate on what I need to do to fix it?

Many thanks!

reefG

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: 2D Toolkit 2.0 beta 1
« Reply #41 on: May 31, 2013, 11:14:21 am »
@loofou - Thats an error, it will be fixed in the next beta.
You can add a function to redirect to -
tk2dTextGeomGen.GetMeshDimensionsForString( ... )

Hello, I also have this issue, can you elaborate on what I need to do to fix it?

Many thanks!

Ah not to worry, I've re-instated the GetMeshDimensions function from my Diffs and it appears to be working again!



reefG

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: 2D Toolkit 2.0 beta 1
« Reply #42 on: May 31, 2013, 11:59:53 am »
I'm getting a warning when building for iOS :


Game scripts or other custom code contains OnMouse_ event handlers. Presence of such handlers might impact performance on handheld devices.
UnityEditor.HostView:OnGUI()


Do I need to disable anything?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 2.0 beta 1
« Reply #43 on: May 31, 2013, 03:12:12 pm »
I"m pretty sure there aren't any OnMouse* functions anywhere. I'll check with an iOS build shortly. What version of Unity are you building on?

reefG

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: 2D Toolkit 2.0 beta 1
« Reply #44 on: May 31, 2013, 04:02:31 pm »
4.1.3f3

Thanks!