OnStopRunning(ref SystemState)
Called when this system stops running because no entities match the system's EntityQuery objects or because you change the system SystemState.Enabled property to false.
阅读时间1 分钟最后更新于 19 天前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
OnStopRunning(SystemState)
void OnStopRunning(ref SystemState state)
Parameters
The SystemState backing this system instance
Remarks
If the EntityQuery objects defined for a system do not match any existing entities then the system skips updating until a successful match is found. Likewise, if you set SystemState.Enabled to false, then the system stops running. In both cases, OnStopRunning is called when a running system stops updating; ISystemStartStop.OnStartRunning is called when it starts updating again.