Struct OmitLinkedEntityGroupFromPrefabInstance
Instructs the entity manager to ignore creating the linked entity group buffer component for each prefab instance.
Namespace: Unity.Entities
Assembly: Unity.Entities.dll
Syntax
public struct OmitLinkedEntityGroupFromPrefabInstance : IComponentData, IQueryTypeParameter
Remarks
The presence of this component instructs EntityManager.Instantiate to not to create the LinkedEntityGroup buffer component for every prefab instance, and the prefab child entities are still created. This component is not kept on the instantiated entities afterwards. This component is completely ignored and treated as a regular tag component when LinkedEntityGroup is not present on the source prefab entity.
This component might add a large performance overhead, because creating buffer components involves heap memory allocations linear to the number of instances being instantiated. Omitting the LinkedEntityGroup might make it difficult to associate the children entities with their prefab roots. In such cases, you can use components with entity references like Parent.