Method CollectAllComponents
CollectAllComponents(EntityManager, NativeArray<Entity>, out NativeList<ComponentType>, out NativeArray<int>)
Helper method to build a list of all component types on all children of a ghost prefab, should not be called directly.
Declaration
public static void CollectAllComponents(EntityManager entityManager, NativeArray<Entity> linkedEntities, out NativeList<ComponentType> allComponents, out NativeArray<int> componentCounts)
Parameters
Type | Name | Description |
---|---|---|
EntityManager | entityManager | Used to add components data on ghost children. |
NativeArray<Entity> | linkedEntities | Linked entities, 0 is the root followed by its children. Each will be marked with GhostChildEntity |
NativeList<ComponentType> | allComponents | Populated with root and child components. |
NativeArray<int> | componentCounts | Populated with each ghost's number of components. |