Optionalname: stringAdds a boolean parameter
Builds and returns the AnimatorController. Resolves all state name references to indices.
Adds a condition to the most recently added transition. Multiple conditions on the same transition are AND-ed together.
Name of the parameter to evaluate
Condition mode: "if", "ifNot", "greater", "less", "equals", "notEqual"
Comparison threshold for numeric conditions (default: 0)
Sets which state is the default/entry state. If not called, the first added state is used.
Name of the state
Adds a float parameter
Adds an integer parameter
Adds a state to the controller. The first state added becomes the default state.
Unique name for the state
State configuration including clip, loop, speed
Adds a transition between two states.
Use "*" as the source to create a transition from any state.
Chain .condition() calls after this to add conditions.
Source state name, or "*" for any-state transition
Destination state name
Optionaloptions: TransitionOptionsTransition configuration
Adds a trigger parameter
A fluent builder for creating AnimatorController instances from code.
Use AnimatorController.build to create a new builder.
Example