ドキュメント

Unity Engine

Unity Engine

Insert(int, ICondition)

Inserts a condition into this group at the specified index.
読み終わるまでの所要時間 1 分最終更新 2ヶ月前

Definition

void Insert(int index, ICondition condition)

Parameters

index

The zero-based index at which to insert the condition. Pass IGroupCondition.Count to append the condition at the end of the group.

condition

The condition to insert.

Remarks

If the condition already belongs to another group, it is first removed from that group. Throws ArgumentOutOfRangeException when the index is less than 0 or greater than IGroupCondition.Count. Throws ArgumentException when the condition is this group or a group that contains this group, or when the condition, or one of its nested conditions, uses a variable from another graph.