ドキュメント

Unity Engine

Download Unity

Unity Engine

OmitLinkedEntityGroupFromPrefabInstance

Instructs the entity manager to ignore creating the linked entity group buffer component for each prefab instance.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public struct OmitLinkedEntityGroupFromPrefabInstance : IComponentData, IQueryTypeParameter

Remarks

The presence of this component instructs 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.