Method ShouldRunSystem
ShouldRunSystem()
Reports whether any of this system's entity queries currently match any chunks. This function is used internally to determine whether the system's OnUpdate function can be skipped.
Declaration
public bool ShouldRunSystem()
Returns
Type | Description |
---|---|
Boolean | True, if the queries in this system match existing entities or the system has the AlwaysUpdateSystemAttribute. |
Remarks
A system without any queries also returns true. Note that even if this function returns true, other factors may prevent a system from updating. For example, a system will not be updated if its Enabled property is false.