- Home /
Control Animator time from script
Description:
In the project I currently work on we are changing the material color, light colors, etc. based on a normalized value (sent by an event).
Up until now, we've been using a series of custom scripts to achieves this, but discovered recently that animations do everything that we want easier and with more control.
Found this post which gets the job done, but it feels excessive to
setup an animator for only one animation (memory not an issue, PC game)
setup an animator for only one animation (memory not an issue, PC game)
Questions:
Is there a better way to achieve this using unity 2020?
Does calling Animator.Play frequently (potentially every frame) on multiple objects raises any performance / GC problem?
Your answer
Follow this Question
Related Questions
Make Mecanim animation play completely dependent on framerate? 0 Answers
Get time when the animation starts in Animator Controller 1 Answer
How do I set the time of an animation playing in the animator (Mechanum) 5 Answers
[Mecanim] How to manualy set the time on a state by code? 0 Answers
Set the current time / frame of a Mecanim animation 5 Answers