Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IGroupCondition

Interface for a condition that groups other conditions.
Read time 1 minuteLast updated 6 days ago

Definition

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

CountThe number of conditions nested in this group.
OperationThe logical operation applied to the nested conditions.

Methods

Method

Description

AddAdds an existing condition to this group.
ClearRemoves all conditions from this group.
GetRetrieves the conditions nested in this group.
InsertInserts a condition into this group at the specified index.
RemoveRemoves a condition from this group.

Inheritance