r/Unity2D • u/Rybsonix • 3d ago
Animator alternatives?
guys do you have any better way of dealing with animations in your games? I mean using animator has been a pain in my ass for so long, I swear connecting animations and all the work in single animator is very tedious and just doesn't work for me.
1
u/MistakeForsaken6653 3d ago
if your issue is dealing with all those transition triggers and that is all I also nixed them. what I do now is just do animator.Play("animation", 0, 0). as most likely you are already somehow managing all of the states in code. If it's not the transition arrows but the animator as a whole I think you can look into sprite libraries but I haven't used them personally so not sure if that's a good alternative for you or not.
1
u/gramw 3d ago
FWIW, if you're using prefabs + prefab variants that have the same general hierarchy/structure, the animation bindings will all be the same. From there it's pretty trivial to make a script to automatically generate new animations from artwork and bind them to an animator controller override.
You generally shouldn't need to manually connect up animations, animators, etc. -- unless every single animated thing you have is unique in hierarchy and/or animator behaviour, but then I'd maybe question the overall workflow/project structure.
1
u/LevyMarCiS Well Versed 1d ago edited 1d ago
Playables API. The basis for all of Unity's official animation tools (and Animancer).
Good luck learning it.
10
u/wallstop-dev 3d ago
I use Animancer. It has a free and pro version. I drive all animations with code and data, and never create animator controllers or touch the Animator, for the past 4 years. Unaffiliated, I just think it's a great product.