- Home /
Animate mode does not contain definition for GetCurveBindings
Hello while making my unity game i came across this error and dont know how to fix it, i have looked far for the answers but cant find it, please help, here is the error message
Library\PackageCache\com.unity.timeline@1.2.6\Runtime\Utilities\AnimatorBindingCache.cs(91,40): error CS0117: 'AnimationMode' does not contain a definition for 'GetCurveBindings'
Answer by quangvh · Mar 10, 2020 at 07:21 AM
go to Package Manager, find the package having the error (com.unity.timeline in this case) and remove it to force Unity to download the package version matching the editor
Answer by Ermiq · Dec 06, 2019 at 05:36 AM
Just like many other similar error, it may occur when the project contains some deprecated code from older versions of Unity. If you search for GetCurveBindings
in Unity API, you'll find that it now belongs to AnimationUtility
: https://docs.unity3d.com/ScriptReference/AnimationUtility.GetCurveBindings.html
Double click on the error in console, it should open the line of code that caused the error in your code editor. And try to change AnimationMode
to AnimationUtility
.
So I change Animation$$anonymous$$ode to AnimationUtility and then I have it fixed
As I said, try. $$anonymous$$aybe it will help, if it won't you always can change it back to have the error back.
Do what but now I have errors saying return type must be void to match over written member