- Home /
How would you create an animator controller prefab?
I'm currently working on a 2D top-down game. I'm using an animator controller to animate the Sprite property of my Sprite Renderer on some different characters. I was hoping to create a single animator controller with states like:
walk_up
walk_down
walk_left
walk_right
Ideally I could apply this controller to all my characters, but swap out the animation clips inside each of the states depending on the character. I assumed I could create a prefab of my animator controller, and replace the clips inside the instances of the animator controller states, however this doesn't work. Is there a better way of doing this so that you don't have to create a bunch of animator controllers with the same states?
Answer by cdr9042 · Dec 26, 2018 at 08:24 AM
Old question, but I found the answer. Use the Animation Override Controller (create by Right Click in Project folder > Create). Set Controller to the base controller then you only have to change the animation clip.
Your answer
Follow this Question
Related Questions
Animations on Instantiated Prefabs not working 0 Answers
Animation controller attached to prefab instance doesn't work 0 Answers
Animator is not playing a Playable 2 Answers
How to handle multiple animation variants 1 Answer
Animator parameter does not pick the value of the animation curve with the same name 2 Answers