ドキュメント

Unity Engine

Unity Engine

RemoveRule(ITransitionRule)

Removes a rule from this transition.
読み終わるまでの所要時間 1 分最終更新 2ヶ月前

Definition

void RemoveRule(ITransitionRule rule)

Parameters

The rule to remove. Must belong to this transition.

Remarks

A transition always keeps at least one rule. To remove all rules, use StateMachine.Disconnect instead. Throws ArgumentNullException when
rule
is
null
. Throws ArgumentException when
rule
does not belong to this transition. Throws InvalidOperationException when
rule
is the last rule of this transition.