GetUnmanagedSharedComponentData
Obsolete. Use EntityManager.GetSharedComponent instead.
Read time 1 minuteLast updated a day ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
GetUnmanagedSharedComponentData<T>(Entity)
Obsolete. Use EntityManager.GetSharedComponent instead.
public T GetUnmanagedSharedComponentData<T>(Entity entity) where T : unmanaged, ISharedComponentData
Parameters
The target entity
Returns
Type | Description |
|---|---|
| T | The index of the target entity's value for the shared component of type |
GetUnmanagedSharedComponentData<T>(int)
Obsolete. Use EntityManager.GetSharedComponent instead.
public T GetUnmanagedSharedComponentData<T>(int sharedComponentIndex) where T : unmanaged, ISharedComponentData
Parameters
The index of the shared component in the internal shared component list.
Returns
Type | Description |
|---|---|
| T | A copy of the shared component. |