Пример #1
0
    public bool Load(string layout_file)
    {
        GameObject root = LayoutTool.LoadLayout(layout_file, true);

        if (root != null)
        {
            Release();
            m_root        = root;
            m_dirty       = false;
            m_layout_file = layout_file;
            m_name        = EditorTool.GetFileName(layout_file, false);
            UpdateHierarchyInfo(m_root, 0);
        }

        return(root != null);
    }