文档

Unity Engine

Unity Engine

ISystemStartStop

Optional interface for start/stop notifications on systems.
阅读时间1 分钟最后更新于 19 天前

Definition

  • Type: Interface
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public interface ISystemStartStop

Methods

Method

Description

OnStartRunningCalled before the first call to OnUpdate and when a system resumes updating after being stopped or disabled.
OnStopRunningCalled 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.