Function EntityStorageCache.GetComponentData
GetComponentData<A>
(Entity entity, refEntityAccess<A> access, outComponentRef<A> value)
Retrieves a component for a given entity.
Public
bool GetComponentData<A> (
Entity | entity | |
refEntityAccess<A> | access | |
outComponentRef<A> | value |
Retrieves a component for a given entity.
This is a convenience method to call Update on this object and update on the access object, and then retrieve the component data.
This method is very fast if the entity is the same as the last call to this method. If the entity is different, it will be slower.
Warning
You must not store the returned reference past a structural change in the ECS world.
Return
True if the entity exists, and false if it does not.