Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetRule(int)

Retrieves the rule at the specified index.
Read time 1 minuteLast updated 13 days ago

Definition

ITransitionRule GetRule(int index)

Parameters

index

The zero-based index of the rule to retrieve.

Returns

Type

Description

ITransitionRuleThe rule at the specified index.

Remarks

Throws ArgumentOutOfRangeException when
index
is less than 0 or greater than or equal to ITransition.RuleCount.