Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RemoveStateMachineTransition(AnimatorStateMachine, AnimatorTransition)

Utility function to remove an outgoing transition from source state machine.
Read time 1 minuteLast updated 18 days ago

Definition

public bool RemoveStateMachineTransition(AnimatorStateMachine sourceStateMachine, AnimatorTransition transition)

Parameters

sourceStateMachine

The source state machine.

The transition to remove.

Returns

Type

Description

bool

Remarks

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