Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RemoveState(AnimatorState)

Utility function to remove a state from the state machine.
Read time 1 minuteLast updated 12 days ago

Definition

public void RemoveState(AnimatorState state)

Parameters

The state to remove.

Remarks

If the state is a sub asset of the state machine, it will be deleted. This function pushes an Undo operation.