Disabled
Disables the entity.
阅读时间1 分钟最后更新于 19 天前
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)