Method GetUnmanagedSharedComponentData
GetUnmanagedSharedComponentData<T>(Entity)
Obsolete. Use GetSharedComponent<T>(Entity) instead.
Declaration
[Obsolete("Use GetSharedComponent<T> (UnityUpgradable) -> GetSharedComponent<T>(*)", true)]
public T GetUnmanagedSharedComponentData<T>(Entity entity) where T : unmanaged, ISharedComponentDataParameters
| Type | Name | Description | 
|---|---|---|
| Entity | entity | The target entity | 
Returns
| Type | Description | 
|---|---|
| T | The index of the target entity's value for the shared component of type  | 
Type Parameters
| Name | Description | 
|---|---|
| T | The type of the unmanaged shared component to look up on the target entity | 
GetUnmanagedSharedComponentData<T>(int)
Obsolete. Use GetSharedComponent<T>(int) instead.
Declaration
[Obsolete("Use GetSharedComponent<T> (UnityUpgradable) -> GetSharedComponent<T>(*)", true)]
public T GetUnmanagedSharedComponentData<T>(int sharedComponentIndex) where T : unmanaged, ISharedComponentDataParameters
| Type | Name | Description | 
|---|---|---|
| int | sharedComponentIndex | The index of the shared component in the internal shared component list. | 
Returns
| Type | Description | 
|---|---|
| T | A copy of the shared component. | 
Type Parameters
| Name | Description | 
|---|---|
| T | The data type of the shared component. |