IGroupCondition
Interface for a condition that groups other conditions.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Interface
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
public interface IGroupCondition : ICondition
Remarks
A group condition combines its nested conditions with the logical operation specified by IGroupCondition.Operation. Nested conditions can themselves be group conditions, forming a tree that expresses arbitrary boolean logic. To traverse the tree, enumerate IGroupCondition.Get and check whether each element is itself an IGroupCondition. This interface is implemented by Unity and is not intended to be implemented by user code.
Properties
Property | Description |
|---|---|
| Count | The number of conditions nested in this group. |
| Operation | The logical operation applied to the nested conditions. |
Methods
Method | Description |
|---|---|
| Add | Adds an existing condition to this group. |
| Clear | Removes all conditions from this group. |
| Get | Retrieves the conditions nested in this group. |
| Insert | Inserts a condition into this group at the specified index. |
| Remove | Removes a condition from this group. |