기술 자료

Unity Engine

Unity Engine

RemoveState(IState)

Removes a state from the state machine.
읽는 시간 1분최근 업데이트: 2달 전

Definition

public void RemoveState(IState state)

Parameters

state

The state to remove. Must belong to this state machine.

Remarks

Removing a state also removes any transitions connected to it. Enclose this method with StateMachine.UndoBeginRecordStateMachine and StateMachine.UndoEndRecordStateMachine to add this operation to the undo stack and to update the graph view with the changes.