Method GetSharedComponentData
GetSharedComponentData<T>(Entity)
Obsolete. Use GetSharedComponentManaged<T>(Entity) instead.
Declaration
[Obsolete("Use GetSharedComponentManaged<T> (UnityUpgradable) -> GetSharedComponentManaged<T>(*)", true)]
public T GetSharedComponentData<T>(Entity entity) where T : struct, ISharedComponentDataParameters
| Type | Name | Description | 
|---|---|---|
| Entity | entity | The entity. | 
Returns
| Type | Description | 
|---|---|
| T | A copy of the shared component. | 
Type Parameters
| Name | Description | 
|---|---|
| T | The type of shared component. | 
GetSharedComponentData<T>(int)
Obsolete. Use GetSharedComponentManaged<T>(int) instead.
Declaration
[Obsolete("Use GetSharedComponentManaged<T> (UnityUpgradable) -> GetSharedComponentManaged<T>(*)", true)]
public T GetSharedComponentData<T>(int sharedComponentIndex) where T : struct, 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. |