Class SystemAPI
Giving quick and consistent access to buffers, components, time, enumeration, singletons and more.
This includes any IAspect, IJob
using static Unity.Entities.SystemAPI;
[...]
partial struct SomeJob : IJobEntity { void Execute(ref EcsTestData e1) => e1.value += Time.deltaTime; }
Namespace: Unity.Entities
Assembly: Unity.Entities.dll
Syntax
public static class SystemAPI
Properties
Name | Description |
---|---|
Time | The current Time data for calling system's world. |
Methods
Name | Description |
---|---|
Exists(Entity) | Checks if the entity exists inside this system's EntityManager. |
Get |
Look up an aspect for an entity. |
Get |
Gets a BufferLookup<T> object that can access a Dynamic |
Get |
Gets the run-time type information required to access an array of buffer components in a chunk. |
Get |
Gets the dynamic buffer of an entity. |
Get |
Gets a dictionary-like container containing all components of type T, keyed by Entity. |
Get |
Gets a reference to a component for an entity, for read-only access. |
Get |
Gets a reference to a component for an entity, for read/write access. |
Get |
Gets a reference to a component for an entity associated with a system, for read/write access. |
Get |
Gets the run-time type information required to access an array of component data in a chunk. |
Get |
Look up the value of a component for an entity. |
Get |
Gets the value of a component for an entity associated with a system. |
Get |
Gets a EntityStorageInfoLookup object that can access a Entity |
Get |
Gets the run-time type information required to access the array of Entity objects in a chunk. |
Get |
Gets the run-time type information required to access a shared component data in a chunk. |
Get |
Gets the value of a singleton buffer component. |
Get |
Gets the Entity instance for a singleton. |
Get |
Gets a reference to the singleton component, for read/write access. |
Get |
Gets the value of a singleton component. |
Has |
Checks whether an entity has a dynamic buffer of a specific IBufferElementData type. |
Has |
Checks whether an entity has a specific type of component. |
Has |
Checks whether an entity associated with a system has a specific type of component. |
Has |
Checks whether a singleton component of the specified type exists. |
Is |
Checks whether the IBuffer |
Is |
Checks whether the IComponent |
Is |
Checks whether the IComponent |
Query |
Gives a fluent API for constructing Entity |
Query<T1>() | Get Enumerable for iterating through Aspect, and Component types from inside a system |
Query<T1, T2>() | Get Enumerable for iterating through Aspect, and Component types from inside a system |
Query<T1, T2, T3>() | Get Enumerable for iterating through Aspect, and Component types from inside a system |
Query<T1, T2, T3, T4>() | Get Enumerable for iterating through Aspect, and Component types from inside a system |
Query<T1, T2, T3, T4, T5>() | Get Enumerable for iterating through Aspect, and Component types from inside a system |
Query<T1, T2, T3, T4, T5, T6>() | Get Enumerable for iterating through Aspect, and Component types from inside a system |
Query<T1, T2, T3, T4, T5, T6, T7>() | Get Enumerable for iterating through Aspect, and Component types from inside a system |
Set |
Enable or disable the IBuffer |
Set |
Enable or disable the IComponent |
Set |
Enable or disable the IComponent |
Set |
Sets the value of a component of an entity. |
Set |
Sets the value of a component of an entity associated with a system. |
Set |
Sets the value of a singleton component. |
Try |
Gets the value of a singleton buffer component, and returns whether or not a singleton buffer component of the specified type exists in the World. |
Try |
Gets the singleton Entity, and returns whether or not a singleton Entity of the specified type exists in the World. |
Try |
Gets the value of a singleton component, and returns whether or not a singleton component of the specified type exists in the World. |
Try |
Gets the value of a singleton component, and returns whether or not a singleton component of the specified type exists in the World. |