Hello Guest

Author Topic: Updated 2DTK, getting 'tk2dEditorSpriteDataUnloader' error  (Read 6997 times)

rxmarcus

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 24
    • View Profile
Updated 2DTK, getting 'tk2dEditorSpriteDataUnloader' error
« on: March 10, 2014, 04:42:49 pm »
I updated the 2DTK from the unity asset store into my project, now when running my project im getting  'The name 'tk2dEditorSpriteDataUnloader' does not exist in the current context.

It is a script error found in the 'tk2dSpriteCollectionData.cs' (564,17)

Any help on resolving this? Or should I just revert back to the old version?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Updated 2DTK, getting 'tk2dEditorSpriteDataUnloader' error
« Reply #1 on: March 10, 2014, 04:45:44 pm »
If you've run SetupForJS in the past, have you run it again?

rxmarcus

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Updated 2DTK, getting 'tk2dEditorSpriteDataUnloader' error
« Reply #2 on: March 10, 2014, 04:49:26 pm »
hmm what is SetupForJS?  All my scripting that I do is in C# if that makes a difference.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Updated 2DTK, getting 'tk2dEditorSpriteDataUnloader' error
« Reply #3 on: March 10, 2014, 05:02:05 pm »
Did you move the tk2d folder from the default installation directory? Its looking for that file tk2dEditorSpriteDataUnloader and can't find it for some reason. If you find that file and put it where it belongs it should work properly. It should be in the same folder as tk2dBaseSprite, etc.

rxmarcus

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Updated 2DTK, getting 'tk2dEditorSpriteDataUnloader' error
« Reply #4 on: March 10, 2014, 05:08:56 pm »
I didn't move anything, and just confirmed that the file is in the same folder as 'tk2dBaseSprite.cs'.  They are all found under "TK2DROOT/tk2d/Code/Sprites/..."

rxmarcus

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Updated 2DTK, getting 'tk2dEditorSpriteDataUnloader' error
« Reply #5 on: March 10, 2014, 05:42:03 pm »
I ended up fully deleting my 2DTKROOT folder, and importing from the asset store again.  My project builds now, but gets a strange error "tk2d Undo/Redo callback failed. Undo/Redo not supported in this version of Unity".  Im running 4.3.4 btw.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Updated 2DTK, getting 'tk2dEditorSpriteDataUnloader' error
« Reply #6 on: March 10, 2014, 05:49:14 pm »
What version of 2D Toolkit is installed? 2D Toolkit > About? It looks like the asset store has borked the download and is importing an old version....

rxmarcus

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Updated 2DTK, getting 'tk2dEditorSpriteDataUnloader' error
« Reply #7 on: March 10, 2014, 05:52:24 pm »
Version 2.1 final + hotfix 1

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Updated 2DTK, getting 'tk2dEditorSpriteDataUnloader' error
« Reply #8 on: March 10, 2014, 06:06:41 pm »
Yup thats pretty ancient. The one on the asset store is 2.3.3
Its probably worth trying to force unity to download it again in the asset store downloads, or register your copy and download it from the forum here.

rxmarcus

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Updated 2DTK, getting 'tk2dEditorSpriteDataUnloader' error
« Reply #9 on: March 10, 2014, 06:44:01 pm »
Cool, just submitted a request for membership, ill download it from here once I'm accepted.