public virtual void Launch() { win = EditorWindow.GetWindowWithRect <H3DEditorWindow>(mRect, false, mTitle); win.wantsMouseMove = true; win.app = this; root.frame = new Rect(0, 0, mRect.width, mRect.height); root.backgroundColor = new Color32(241, 241, 241, 255); OnDidLaunch(); if (win != null) { win.Show(); } }
public virtual void OnDestroy() { H3DGraph.ClearCache(); root.OnDestroy(); win = null; }