Hello Guest

Author Topic: Error after upgrading from unity 3 to unity 4  (Read 8403 times)

mrmons

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 7
    • View Profile
Error after upgrading from unity 3 to unity 4
« 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?


unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Error after upgrading from unity 3 to unity 4
« Reply #1 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.

mrmons

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Error after upgrading from unity 3 to unity 4
« Reply #2 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....

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Error after upgrading from unity 3 to unity 4
« Reply #3 on: June 12, 2013, 09:52:09 am »
Where did you get the playmaker actions from?

mrmons

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Error after upgrading from unity 3 to unity 4
« Reply #4 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
« Last Edit: June 12, 2013, 10:39:57 am by mrmons »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Error after upgrading from unity 3 to unity 4
« Reply #5 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.

mrmons

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Error after upgrading from unity 3 to unity 4
« Reply #6 on: June 12, 2013, 11:18:43 am »
 If playmaker 2DToolkit wasn't the latest version?

nothing I can do right now?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Error after upgrading from unity 3 to unity 4
« Reply #7 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).

mrmons

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Error after upgrading from unity 3 to unity 4
« Reply #8 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

booster

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Error after upgrading from unity 3 to unity 4
« Reply #9 on: September 06, 2013, 05:46:05 pm »
Hi,

I'm getting the same error - did you manage to find a fix for this?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Error after upgrading from unity 3 to unity 4
« Reply #10 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.

Geniraal

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 1
    • View Profile

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Error after upgrading from unity 3 to unity 4
« Reply #12 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.