Method OnDisable OnDisable() Called by Unity when the inspector component is disabled Declaration protected virtual void OnDisable()