Struct EntityAccess

Public

Utility for efficient random access to entity component data from the main thread.

Since this struct returns a reference to the component data, it is faster than using EntityManager.GetComponentData, in particular for larger component types.

Warning

Some checks are not enforced by this API. It is the user's responsibility to ensure that this struct does not survive past an ECS system update. If you only use this struct from the main thread and only store it locally on the stack, this should not be a problem. This struct also does not enforce that you only read to the component data if the readOnly flag is set.

Public Methods

EntityAccess (readOnly)
Public
HasComponent (storage)
Public
Update (entityManager)

Update the component type handle if necessary.

Public

Public Variables

handle
Public
lastSystemVersion
Public
readOnly
Public
this[EntityStorageInfo storage]
Public
worldSequenceNumber
Public