Prefab
Marks the entity as a prefab, which implicitly disables the entity.
Read time 1 minuteLast updated a day ago
Definition
- Type: Struct
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
- Implements: IComponentData, IQueryTypeParameter
public struct Prefab : IComponentData, IQueryTypeParameter
Remarks
By default, an EntityQuery ignores all entities that have a Prefab component. You can override this default behavior by setting the EntityQueryOptions.IncludePrefab flag of the EntityQueryDesc object used to create the query.