Beispiel #1
0
    void OnDestroy()
    {
        Layout cur_layout = m_layout_mng.CurEditLayout;

        if (cur_layout != null && cur_layout.Dirty)
        {
            if (EditorUtility.DisplayDialog("", "当前编辑的layout已被修改,是否保存?", "是", "否"))
            {
                cur_layout.Save();
            }
        }

        ClearUndos();
        m_view.Dispose();
        m_layout_mng.Dispose();
        LayoutTool.ReleaseRoot();
    }