Method GetSharedComponentData
GetSharedComponentData<T>(SharedComponentTypeHandle<T>, EntityManager)
Obsolete. Use GetSharedComponentManaged<T>(SharedComponentTypeHandle<T>, EntityManager) instead.
Declaration
[Obsolete("Use GetSharedComponentManaged (UnityUpgradable) -> GetSharedComponentManaged<T>(*)", true)]
public T GetSharedComponentData<T>(SharedComponentTypeHandle<T> chunkSharedComponentData, EntityManager entityManager) where T : struct, ISharedComponentData
Parameters
Type | Name | Description |
---|---|---|
SharedComponentTypeHandle<T> | chunkSharedComponentData | An object containing type and job safety information. To create this object, call GetSharedComponentTypeHandle<T>(). |
EntityManager | entityManager | An EntityManager instance. |
Returns
Type | Description |
---|---|
T | The shared component value. |
Type Parameters
Name | Description |
---|---|
T | The data type of the shared component. |