OnStartRunning(ref SystemState)
Called before the first call to OnUpdate and when a system resumes updating after being stopped or disabled.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
OnStartRunning(SystemState)
void OnStartRunning(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 updates until a successful match is found. Likewise, if you set SystemState.Enabled to false, then the system stops running. In both cases, ISystemStartStop.OnStopRunning is called when a running system stops updating; OnStartRunning is called when it starts updating again.