RemoveState(IState)
Removes a state from the state machine.
読み終わるまでの所要時間 1 分最終更新 2ヶ月前
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
public void RemoveState(IState state)
Parameters
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.