Entitas-0.32.0
|
A GroupObserver can observe one or more groups and collects changed entities based on the specified eventType. More...
Public Member Functions | |
GroupObserver (Group group, GroupEventType eventType) | |
Creates a GroupObserver and will collect changed entities based on the specified eventType. | |
GroupObserver (Group[] groups, GroupEventType[] eventTypes) | |
Creates a GroupObserver and will collect changed entities based on the specified eventTypes. | |
void | Activate () |
Activates the GroupObserver (GroupObserver are activated by default) and will start collecting changed entities. | |
void | Deactivate () |
void | ClearCollectedEntities () |
Clears all collected entities. | |
override string | ToString () |
Properties | |
HashSet< Entity > | collectedEntities [get] |
Returns all collected entities. Call observer.ClearCollectedEntities() once you processed all entities. | |
A GroupObserver can observe one or more groups and collects changed entities based on the specified eventType.
|
inline |
Deactivates the GroupObserver (GroupObserver are activated by default). This will also clear all collected entities.