Creates a new instance of the GameSystem class.
The World instance that this system will be added to.
Optional
attributes: AttributesOptional attributes to configure this system.
Optional
configMutable reference to the optional SystemConfig component associated with this system.
Static
queriesDefines what GameComponent the System will query for. This needs to be user defined.
Static
Optional
systemAn optional SystemConfig class for configuring this system.
AssetManager instance
Get a list of all GameObject of the given queryId that are added in this frame in queries. This does not include the GameObjects that gets added in GameSystems that execute after this system.
An array of GameObject instances that were added in this frame and match the query.
An error if the query ID does not exist in the current game system or if the query does not listen to added events.
The ID of the query to retrieve added game objects for.
Get a list of all GameObject of the given queryId in queries.
An array of GameObject instances that match the query.
An error if the query ID does not exist in the current game system.
The ID of the query to retrieve game objects for.
Get a list of all GameObject of the given queryId that are removed in this frame in queries. This does not include the GameObjects that gets removed in GameSystems that execute after this system.
An array of GameObject instances that were removed in this frame and match the query.
An error if the query ID does not exist in the current game system or if the query does not listen to removed events.
The ID of the query to retrieve removed game objects for.
This function is called on each frame Core is executed. All of the queries defined on the class are available here.
A game system that only updates when the app is in immersive mode.