AnimatorFix icon indicating copy to clipboard operation
AnimatorFix copied to clipboard

Key Not Found

Open edwonedwon opened this issue 9 years ago • 3 comments

I'm getting an odd bug when trying to use with my project:

KeyNotFoundException: The given key was not present in the dictionary. System.Collections.Generic.Dictionary`2[System.Int32,StateMachineBehaviourFix].get_Item (Int32 key) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:150) AnimatorFix.HandleStateChanged (Int32 currentNameHash, Boolean firstUpdate) (at Assets/SymLinks/AnimatorFix/Plugins/AnimatorFix/AnimatorFix.cs:170) AnimatorFix.Update () (at Assets/SymLinks/AnimatorFix/Plugins/AnimatorFix/AnimatorFix.cs:133)

This is the first time I've used this. Seems like a genius fix for Animators shortcomings!

edwonedwon avatar Sep 28 '16 02:09 edwonedwon

OK I tried making a new project, importing the plugin and opening the test scene, and hitting play. i get this error

IndexOutOfRangeException: Array index is out of range. AnimatorFix.Update () (at Assets/AnimatorFix/Plugins/AnimatorFix/AnimatorFix.cs:128)

I'm using Unity 5.4.1f1 by the way.

edwonedwon avatar Sep 28 '16 02:09 edwonedwon

Wait, actually that last error was caused because there was no controller assigned to the animator, now that I've dropped that in, it's back to the same old error:

KeyNotFoundException: The given key was not present in the dictionary. System.Collections.Generic.Dictionary`2[System.Int32,StateMachineBehaviourFix].get_Item (Int32 key) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:150) AnimatorFix.HandleStateChanged (Int32 currentNameHash, Boolean firstUpdate) (at Assets/AnimatorFix/Plugins/AnimatorFix/AnimatorFix.cs:170) AnimatorFix.Update () (at Assets/AnimatorFix/Plugins/AnimatorFix/AnimatorFix.cs:133)

edwonedwon avatar Sep 28 '16 02:09 edwonedwon

Hi!

Thanks for the feedback. I really want to get back to finishing this up properly, but the day job got kind of hectic, so I haven't gotten around to it. I still plan to!

Baste-RainGames avatar Oct 01 '16 08:10 Baste-RainGames