What does `state_machine_type` do? (AnimationNodeStateMachine)

Godot Version



I came across this field while working on my game and there’s really no explanation to how it affects the behavior of the animation? Is this something I have to set manually? Even my nested machines say “root” in the editor. Is that fixed at runtime?

I may have to poke around in the source to figure this out, unless someone familiar with the code can already explain it.

There are some small explanations here for each type AnimationNodeStateMachine — Godot Engine (stable) documentation in English and here’s the PR that implemented them with a bit more info about each one Rework for nested `AnimationNodeStateMachine` by TokageItLab · Pull Request #75759 · godotengine/godot · GitHub

1 Like