Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AddStateMachineExitTransition(AnimatorStateMachine)

Utility function to add an outgoing transition from the source state machine to the exit of it's parent state machine.
Read time 1 minuteLast updated 13 days ago

Definition

public AnimatorTransition AddStateMachineExitTransition(AnimatorStateMachine sourceStateMachine)

Parameters

sourceStateMachine

The source state machine.

Returns

Type

Description

AnimatorTransition

Remarks

The transition asset that is created is added as a sub asset of the state. This function pushes an Undo operation.