Insert(int, ICondition)
Inserts a condition into this group at the specified index.
Read time 1 minuteLast updated 8 days ago
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
void Insert(int index, ICondition condition)
Parameters
The zero-based index at which to insert the condition. Pass IGroupCondition.Count to append the condition at the end of the group.
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.