Hello Guest

Author Topic: Just updated the toolkit, nothing works  (Read 7170 times)

cortheya

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 14
    • View Profile
Just updated the toolkit, nothing works
« on: April 27, 2013, 02:39:41 am »
I've tried reimporting it again and again and nothing will work, there's no option to create sprites, no nothing. At the top of the screen the menu for 2d toolkit only has the setup for javascript option.

x8105

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 85
    • View Profile
Re: Just updated the toolkit, nothing works
« Reply #1 on: April 27, 2013, 03:02:38 am »
Blank Project? What Version of Unity?

cortheya

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Just updated the toolkit, nothing works
« Reply #2 on: April 27, 2013, 03:03:52 am »
Existing project, just updated to the most recent version of Unity.

x8105

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 85
    • View Profile
Re: Just updated the toolkit, nothing works
« Reply #3 on: April 27, 2013, 03:12:22 am »
on project load do you have any console output??

cortheya

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Just updated the toolkit, nothing works
« Reply #4 on: April 27, 2013, 04:56:08 am »
Yup. "tk2dBaseSprite.collection' is inaccessible due to its protection level"

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Just updated the toolkit, nothing works
« Reply #5 on: April 27, 2013, 09:41:16 am »
Did you update the toolkit or unity, or both? In what order?
What errors do you get in the console? Full error messages, please.

Have you moved the tk2d installation directory from the default directory?

cortheya

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Just updated the toolkit, nothing works
« Reply #6 on: April 27, 2013, 07:21:08 pm »
2d Toolkit and then Unity.
Assets/Scripts/Battle/BattleMenu.cs(164,32): error CS0122: `tk2dBaseSprite.collection' is inaccessible due to its protection level

I have not.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Just updated the toolkit, nothing works
« Reply #7 on: April 27, 2013, 07:55:34 pm »
Apologies - I totally forgot.
tk2dBaseSprite.collection was deprecated in that release. Use .Collection instead.

This change is documented in the code, but since .collection became private, it never made it into the generated documentation :(
So - all you need to do is change that line in BattleMenu.cs, or any other locations in your code where .collection is used, and then you should be good to go again.

cortheya

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Just updated the toolkit, nothing works
« Reply #8 on: April 27, 2013, 08:07:50 pm »
Wow that was easy haha thanks a lot for the quick response as always!