Hi,
I thought this one would be simple but it seems it isn’t: I have a set of simple enemies in a defense game which have 4 states - idle, moveforward, attack and die. The corresponding animator is identical for each enemy with a “State” int that controls which of the corresponding animations should be played. No exit times or blending, just flip the state and switch immdeiately.
When adding new enemies, I need to generate Animators which contain the clips for the 4 states and assign the transitions. For now this is not much work, but (a) I may have more enemies later and (b) when I change something, let’s say I add a spell attack or more movement options I need to adjust all animators to keep a consistent interface. So is there a way to define an animator blueprint for the states and transitions in the editor or in code and then change the animation filenames via script or editor component to match the underlying model? I’ve had a look at the Animator and OverrideAnimator scripting manuals and it seems they cannot do what I need.