Method GetSharedComponent
GetSharedComponent<T>(Entity)
Gets a shared component from an entity.
Declaration
public T GetSharedComponent<T>(Entity entity) where T : unmanaged, ISharedComponentData
Parameters
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. |