System Attributes - NocturnalWisp/Tynted-Engine GitHub Wiki
Attributes
Systems attributes are helpful to determine exactly what you want to run your system on. There are currently 4 different attributes that determine different aspects of an entity:
- GetComponents - Requires the entity to have each of the passed components.
- RequireTags - Selects only entities with one of those tags.
- RequireScenes - Selects only the entities in one of those scenes.
- Manager - Overrides all the other attributes and doesn't select any entities to be used.
These attributes filter exactly what entities the system will run on.
Be careful with these, often you should only really be using GetComponents, but on occasion you will use the others for other purposes.