Struct SystemState
Contains raw entity system state. Used by unmanaged systems (ISystem) as well as managed systems behind the scenes.
Namespace: Unity.Entities
Assembly: solution.dll
Syntax
[GenerateTestsForBurstCompatibility]
public ref struct SystemState
Properties
Name | Description |
---|---|
Debug |
Return a debug name for unmanaged systems. |
Dependency | The ECS-related data dependencies of the system. |
Enabled | Controls whether this system executes when its OnUpdate function is called. |
Entity |
The EntityManager object of the World in which this system exists. |
Global |
The current change version number in this World. |
Last |
The current version of this system. |
System |
The untyped system's handle. |
System |
Obsolete. Use System |
Time | Obsolete. The current Time data for this system's world. |
Unmanaged |
Return the unmanaged type index of the system (>= 0 for ISystem-type systems), or -1 for managed systems. |
World | The World in which this system exists. |
World |
The unmanaged portion of the world in which this system exists. |
World |
Retrieve the world update allocator of the World in which this system exists. |
Methods
Name | Description |
---|---|
Complete |
Completes combined job handles registered with this system. See Dependency for more information. |
Get |
Obsolete. Use Get |
Get |
Manually gets a BufferLookup<T> object that can access a Dynamic |
Get |
Manually gets the run-time type information required to access an array of buffer components in a chunk. |
Get |
Obsolete. Use Get |
Get |
Manually gets a dictionary-like container containing all components of type T, keyed by Entity. |
Get |
Manually gets the run-time type information required to access an array of component data in a chunk. |
Get |
Manually gets the run-time type information required to access an array of component data in a chunk. |
Get |
Manually gets the run-time type information required to access a shared component data in a chunk. |
Get |
Gets the cached query for the specified component types, if one exists; otherwise, creates a new query instance and caches it. |
Get |
Gets the cached query for the specified component type, if one exists; otherwise, creates a new query instance and caches it. |
Get |
Gets the cached query for the specified component types, if one exists; otherwise, creates a new query instance and caches it. |
Get |
Create an entity query from a query description builder. |
Get |
Combines an array of query description objects into a single query. |
Get |
Manually gets a dictionary-like container containing information about how entities are stored. |
Get |
Manually gets the runtime type information required to access the array of Entity objects in a chunk. |
Get |
Manually gets the run-time type information required to access a shared component data in a chunk. |
Get |
Obsolete. Use Get |
Require |
Provide a set of queries, one of which must match entities for the system to run. |
Require |
Provide a set of queries, one of which must match entities for the system to run. |
Require |
Adds a query that must return entities for the system to run. You can add multiple required queries to a system; all of them must match at least one entity for the system to run. |
Require |
Require that a specific component exist for this system to run.
Also includes any components added to a system.
See System |
Require |
Obsolete. Use Require |
Should |
Reports whether this system satisfies the criteria to update. This function is used internally to determine whether the system's OnUpdate function can be skipped. |