Documentation

Unity Engine


Unity Engine


GetComponentDataFromEntity<T>(bool)

Obsolete. Use ComponentSystemBase.GetComponentLookup instead.
Read time 1 minuteLast updated a day ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
Warning
Deprecated. This method has been renamed to GetComponentLookup. (RemovedAfter Entities 1.0)
public ComponentLookup<T> GetComponentDataFromEntity<T>(bool isReadOnly = false) where T : unmanaged, IComponentData

Parameters

isReadOnly

Whether the data is only read, not written. Access data as read-only whenever possible.

Returns

Type

Description

ComponentLookup<T>All component data of type T.

Remarks

Gets an dictionary-like container containing all components of type T, keyed by Entity.