Add new empty state in animator at runtime

Hello!

Is there a way to add new states in animator by not using AnimatorStateMachine.AddState? This only works in editor and I can’t find a way to do this in order to get this working in build.

No, you can’t modify Animator Controllers at runtime.

But you might be interested in Animancer (link in my signature) which lets you avoid Animator Controllers and do everything in scripts at runtime.

1 Like