public void OnDestroy()
{
if (this.m_PreviewUtility != null)
{
this.m_PreviewUtility.Cleanup();
this.m_PreviewUtility = null;
}
if (this.m_WireMaterial != null)
{
Object.DestroyImmediate(this.m_WireMaterial, true);
}
}