文档

Unity Engine

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.
阅读时间1 分钟最后更新于 1 个月前

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.