Version: Unity 6.7 Beta (6000.7)
LanguageEnglish
  • C#

ITransition.RemoveRule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public void RemoveRule(ITransitionRule rule);

Parameters

Parameter Description
rule The rule to remove. Must belong to this transition.

Description

Removes a rule from this transition.

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.