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