Method OnDisable OnDisable() This function is called when the behavior becomes disabled. Declaration protected virtual void OnDisable()