Method OnDestroy OnDestroy() Method used to clean up plug-in when Device Simulator is destroyed. Declaration public virtual void OnDestroy()