OnDestroy OnDestroy() protected void OnDestroy() ; Description This function is called when MonoBehaivour will be destroyed.