- Home /
How do i add an AnimationEvent to an animation of a single instance with script?
Hello Indies!
I have been stuck with a little hiccup in Unity for a couple days now. I have a prefab with an animator. I am adding an animation event to a certain animation state in the animator via script. Unfortunately the event is added to every instance's animation. After some research i learnt that changing the animation data at runtime affects the original animation file thus the animation data of all the instances. I discovered the class "AnimatorOverrideController" which creates a copy of your animator controller and enables you to manage animator data for a single instance. But i did not find anything equivalent for handling the animation data.
Do you guys have an idea about this matter?
Your answer
Follow this Question
Related Questions
Sharing some but not all animator states between characters 0 Answers
Can animation clips be swapped out of the animator override controller in runtime? 1 Answer
How do you increase an animations speed through c# 1 Answer
Aligning animation with movement. 0 Answers
AnimationEvent has no receiver, but there is no AnimationEvent 1 Answer