| Parameter | Description |
|---|---|
| entity | The entity. |
T A copy of the shared component.
Gets a shared component from an entity.
| Parameter | Description |
|---|---|
| sharedComponentIndex | The index of the shared component in the internal shared component list. |
T A copy of the shared component.
Gets a shared component by index.
The ECS framework maintains an internal list of unique shared components. You can get the components in this list, along with their indices using EntityManager.GetAllUniqueSharedComponents. An index in the list is valid and points to the same shared component index as long as the shared component order version from EntityManager.GetSharedComponentOrderVersion remains the same.