Method OnDestroy OnDestroy(ref SystemState) Callback invoked when the system is destroyed. Declaration public void OnDestroy(ref SystemState state) Parameters Type Name Description SystemState state The entity system state. Implements ISystem.OnDestroy(ref SystemState)