I am trying to use the Properties in the Animation Window to animate a variable within a Script. The gif shows the Property properly updating when the animation is played in the Animation Window, but not when it is played in game.
I’ve submitted a report and have provided my project and other relevant links:
Anyone have similar problems or suggestions for a work around? I’ve also tried using the Animator’s Parameters, but for some reason the Animation Window isn’t letting me add them to my Animation, which is a different problem.
Thanks for reporting this bug, we will take a look
You can create animation curve that drive animator parameter in the animation window if your clip is not read only, or in the model importer as additionnal curve. In the model importer you need to give the same name to your curve than the animator parameter’s that you want to animate
It is now finding the animator parameter in the script properly, but now has the same problem as reported initially with Animation Properties. The Animator Parameter reads proper values when playing in the Animation Window, but not during playing, either through the Inspector or while printing out the value to the Console.
Obligatory GIF:
If there’s anything else I can do let me know, thanks again! <3
Updated to 5.2.01f and the Animator Parameter no longer shows as missing in the Animation Window as a Property, however I am still unable to retrieve its value in script in anyway.
EDIT: So by placing the key with Mouse Click and Drag instead of typing in the value, I have it outputting values to the Inspector and Console now, but they aren’t the right ones…really bizarre behavior. I can provide a GIF or Project of that behavior if necessary.
Submitted, if there’s anything else I can do to provide you guys with more information to pinpoint it let me know. There’s a variety of methods and different weird behaviors I can repro and take videos if needed.