Author Topic: HELP!  (Read 2674 times)

jrtheman86

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
HELP!
« on: January 28, 2014, 10:52:22 PM »
I'm getting 4 errors. I just updated NGUI to the latest update and this is what i'm getting now.

1. Assets/NGUI/Examples/Scripts/Plugins/NGUI/Internal/ActiveAnimation.cs(47,61): error CS1061: Type `Animator' does not contain a definition for `GetCurrentAnimatorStateInfo' and no extension method `GetCurrentAnimatorStateInfo' of type `Animator' could be found (are you missing a using directive or an assembly reference?)

2. Assets/NGUI/Examples/Scripts/Plugins/NGUI/Internal/ActiveAnimation.cs(112,35): error CS1061: Type `Animator' does not contain a definition for `Play' and no extension method `Play' of type `Animator' could be found (are you missing a using directive or an assembly reference?)

3. Assets/NGUI/Examples/Scripts/Plugins/NGUI/Internal/ActiveAnimation.cs(142,35): error CS1501: No overload for method `Update' takes `1' arguments


4. Assets/NGUI/Examples/Scripts/Plugins/NGUI/Internal/ActiveAnimation.cs(263,35): error CS1061: Type `Animator' does not contain a definition for `Play' and no extension method `Play' of type `Animator' could be found (are you missing a using directive or an assembly reference?)

is there a way to get a previous update or can someone please help me solve this i can't progress in making my game.

Cripple

  • TNP Alpha
  • Full Member
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 117
    • View Profile
Re: HELP!
« Reply #1 on: January 29, 2014, 03:40:12 AM »
What version of Unity do you use, it looks like that you use a pre 4.3 Unity. Maybe the code misses some #ifdef ^^

If you need to work and don't need this script, just remove ActiveAnimation.cs until an update comes.
Graphicstream Dev.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: HELP!
« Reply #2 on: January 29, 2014, 08:37:36 AM »
You need to update your version of Unity. NGUI only officially supports the latest of the 4 cycle and the latest of the 3 cycle. I have no way of testing other outdated versions.

I will add the #ifdefs in there for the next version, but you will keep running into such issues in the future unless you update your Unity.

jrtheman86

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: HELP!
« Reply #3 on: January 29, 2014, 03:19:15 PM »
I have version 4.3.3f1. I just checked online theres a minor update for unity. Newest is 4.3.4. Jesus i just updated like 2 days ago. I'll see if that fixes it.

jrtheman86

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: HELP!
« Reply #4 on: January 29, 2014, 04:23:29 PM »
I had to delete all the scripts in the script folder and Ngui folder as well to continue.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: HELP!
« Reply #5 on: January 29, 2014, 10:19:47 PM »
I use 4.3.3 for development here, which is where the feature was added. If you're still getting that error it means that you defined your own class called "Animator" which conflicts with Unity's UnityEngine.Animator.

You shouldn't name classes the same as Unity's. Also, deleting the NGUI folder prior to importing the update is a necessary step, as described in the readme file.