Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ITransitionRule

Interface for a single rule stacked on a ITransition.
Read time 1 minuteLast updated 10 days ago

Definition

public interface ITransitionRule

Remarks

A transition can hold several rules. Each rule owns a root IGroupCondition that expresses the conditions under which the transition is taken. Walk the condition hierarchy from ITransitionRule.RootCondition using IGroupCondition.Get. This interface is implemented by Unity and is not intended to be implemented by user code.

Properties

Property

Description

EnabledWhether the rule is enabled. A disabled rule is never evaluated when the transition is taken.
IconThe icon displayed for this rule in the transition inspector, or
null
if none is set.
IDThe globally unique identifier for this rule.
RootConditionThe root condition group for this rule.
TitleThe title of the rule.
TransitionThe transition this rule is stacked on, or
null
when the rule is not part of one.