public void OnDestroy() { if (this.m_Preview != null) { Object.DestroyImmediate(this.m_Preview); } if (!this.m_Focused) { this.SendEvent("EyeDropperCancelled", false); } }