Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RemoveStateMachine(AnimatorStateMachine)

Utility function to remove a state machine from its parent state machine.
Read time 1 minuteLast updated 13 days ago

Definition

public void RemoveStateMachine(AnimatorStateMachine stateMachine)

Parameters

The state machine to remove.

Remarks

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