기술 자료

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.