기술 자료

Unity Engine

Unity Engine

AddStateMachineBehaviour

A non-generic version of this method.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

AddStateMachineBehaviour(Type)

A non-generic version of this method.
public StateMachineBehaviour AddStateMachineBehaviour(Type stateMachineBehaviourType)

Parameters

stateMachineBehaviourType

The type of state machine behaviour class to add.

Returns

Type

Description

StateMachineBehaviour

AddStateMachineBehaviour<T>()

Adds a state machine behaviour class of type T to the AnimatorStateMachine. Note that there is no corresponding "Remove" method. To remove a state machine behaviour, use Object.Destroy.
public T AddStateMachineBehaviour<T>() where T : StateMachineBehaviour

Returns

Type

Description

T