Disabled
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 Disabled : IComponentData, IQueryTypeParameter
Remarks
By default, an EntityQuery ignores all entities that have this component. You can override this default behavior by setting the flag of the EntityQueryDesc object used to create the query.
EntityQueryOptions.IncludeDisabledEntitiesAdditional Resources: IsEnabled(Entity), SetEnabled(Entity, bool)