Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ICondition

Interface for a condition attached to a state machine transition.
Read time 1 minuteLast updated 6 days ago

Definition

public interface ICondition

Remarks

A transition is taken only when its conditions are met. Conditions are organized in groups: every transition has a root group condition, and each group combines its nested conditions with a logical operation. Use IGroupCondition to traverse the condition hierarchy from the root group. This interface is not intended to be implemented by user code; to author a custom condition, derive from Condition<T> instead.

Properties

Property

Description

IconThe icon displayed for this condition in the transition inspector, or
null
if none is set.
IDThe globally unique identifier for this condition.
RuleThe rule this condition belongs to, or
null
when the condition is not part of one.