Documentation

Unity Engine


Unity Engine


OnDestroy()

Destroys this system. Any pending command buffers will be disposed, but their commands will NOT be played back.
Read time 1 minuteLast updated a day ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
protected override void OnDestroy()

Remarks

If you override this method, you should call
base.OnDestroy()
to retain the default destruction logic.