Method OnDestroy
OnDestroy()
Destroys this system. Any pending command buffers will be disposed, but their commands will NOT be played back.
Declaration
protected override void OnDestroy()
Overrides
Remarks
If you override this method, you should call base.OnDestroy()
to retain the default
destruction logic.