Enabled
Controls whether this system executes when its OnUpdate function is called.
阅读时间1 分钟最后更新于 19 天前
Definition
- Type: Property
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public bool Enabled { get; set; }
Remarks
The Enabled property is intended for debugging so that you can easily turn on and off systems from the Entity Debugger window. A system with Enabled set to false will not update, even if its SystemState.ShouldRunSystem function returns true.