2D Toolkit Forum

2D Toolkit => Support => Topic started by: mrmons on June 12, 2013, 06:41:46 am

Title: Error after upgrading from unity 3 to unity 4
Post by: mrmons on June 12, 2013, 06:41:46 am
I get this 2 error after I upgrade my unity

Assets/PlayMaker/Actions/toolkit2d/Sprite/Tk2dSpriteGetPixelPerfect.cs(75,37): error CS1061: Type `tk2dBaseSprite' does not contain a definition for `pixelPerfect' and no extension method `pixelPerfect' of type `tk2dBaseSprite' could be found (are you missing a using directive or an assembly reference?)

Assets/PlayMaker/Actions/toolkit2d/Sprite/Tk2dSpriteGetPixelPerfect.cs(77,63): error CS1061: Type `tk2dBaseSprite' does not contain a definition for `pixelPerfect' and no extension method `pixelPerfect' of type `tk2dBaseSprite' could be found (are you missing a using directive or an assembly reference?)

I have go to asset store and upgrade the 2Dtoolkit.
How can I solve this?

Title: Re: Error after upgrading from unity 3 to unity 4
Post by: unikronsoftware on June 12, 2013, 09:32:31 am
Did you upgrade Unity alone, or did you update 2D Toolkit as well - looks like you have?
And the error looks like its from the playmaker action...

If there updated playmaker actions for 2D Toolkit 2.0, you should update that too.
Title: Re: Error after upgrading from unity 3 to unity 4
Post by: mrmons on June 12, 2013, 09:51:07 am
Aw...is from playmaker, ya I update both of it.
But this error still occur. So I should report this error to playmaker?
or in unity 4.0 2Dtoolkit no longer support playmaker?
or playmaker no longer support 2Dtoolkit.

I hope not.....that would really kill me....
Title: Re: Error after upgrading from unity 3 to unity 4
Post by: unikronsoftware on June 12, 2013, 09:52:09 am
Where did you get the playmaker actions from?
Title: Re: Error after upgrading from unity 3 to unity 4
Post by: mrmons on June 12, 2013, 10:37:07 am
I get from playmaker>editor ?
it since like if any error occur, playmaker menu won't appear when I first upgrade to unity4, I commentize all the error only the menu will appear.

I done most of my thing by using playmaker editor include 2Dtoolkit stuff...

it since like all the error is related pixelperfect code in 2Dtoolkit
Title: Re: Error after upgrading from unity 3 to unity 4
Post by: unikronsoftware on June 12, 2013, 10:54:39 am
The pixelperfect stuff was deprecated (i.e. removed) in 2D Toolkit 2.0 as its old, archaic and not really very useful. I'll take a look at the playmaker stuff when I can to see what I can do.
Title: Re: Error after upgrading from unity 3 to unity 4
Post by: mrmons on June 12, 2013, 11:18:43 am
 If playmaker 2DToolkit wasn't the latest version?

nothing I can do right now?
Title: Re: Error after upgrading from unity 3 to unity 4
Post by: unikronsoftware on June 12, 2013, 11:34:06 am
You can fix the Playmaker - 2D Toolkit interface script. If you send me the script (support at unikronsoftware.com) I could probably work out what needs to be changed.
Or downgrade to the previous 2D Toolkit version (1.92 + patch 1).
Title: Re: Error after upgrading from unity 3 to unity 4
Post by: mrmons on June 12, 2013, 02:05:01 pm
...I don't think I can fix it wouldn't need playmaker .., I have sent the script to info@unikronsoftware.com

Would appreciate if you can help to fix the error.

Thank you
Title: Re: Error after upgrading from unity 3 to unity 4
Post by: booster on September 06, 2013, 05:46:05 pm
Hi,

I'm getting the same error - did you manage to find a fix for this?
Title: Re: Error after upgrading from unity 3 to unity 4
Post by: unikronsoftware on September 07, 2013, 09:20:32 am
I'm guessing you updated to 2D Toolkit 2.0 as well? If so, you can find playmaker actions here
http://unikronsoftware.com/2dtoolkit/forum/index.php/topic,1954.0.html

This is for 2D Toolkit 2.0 specifically, if you updated to a newer version, the playmaker actions are included in the 2D Toolkit goodies folder, just install the unity package from there.
Title: Re: Error after upgrading from unity 3 to unity 4
Post by: Geniraal on August 07, 2015, 06:33:40 pm
This url don't work http://unikronsoftware.com/2dtoolkit/forum/index.php/topic,1954.0.html
Title: Re: Error after upgrading from unity 3 to unity 4
Post by: unikronsoftware on August 08, 2015, 11:28:40 am
 http://2dtoolkit.com/forum/index.php/topic,1954.0.html
But you don't need playmaker actions downloaded they are bundled in tk2d in the goodies folder.