Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AddEntryTransition

Utility function to add an incoming transition to the exit of it's parent state machine.
Read time 1 minuteLast updated 11 days ago

Definition

AddEntryTransition(AnimatorState)

Utility function to add an incoming transition to the exit of it's parent state machine.
public AnimatorTransition AddEntryTransition(AnimatorState destinationState)

Parameters

destinationState

The destination AnimatorState state.

Returns

Type

Description

AnimatorTransition

Remarks

The transition asset that is created is added as a sub asset of the state.
An example showing usage of this API can be found at the AnimatorController page.

AddEntryTransition(AnimatorStateMachine)

Utility function to add an incoming transition to the exit of it's parent state machine.
public AnimatorTransition AddEntryTransition(AnimatorStateMachine destinationStateMachine)

Parameters

destinationStateMachine

The destination AnimatorStateMachine state machine.

Returns

Type

Description

AnimatorTransition

Remarks

The transition asset that is created is added as a sub asset of the state.
An example showing usage of this API can be found at the AnimatorController page.