Example #1
0
    void OnGUI()
    {
        if (GUI.Button(new Rect(10f, 10f, 200f, 50f), "Step(1) : ExportFiles"))
        {
            ExportFiles(Selection.objects);
            if (mMenu == null)
            {
                mMenu = GetWindow(typeof(EditorMenu)) as EditorMenu;
            }
            mMenu.Close();
        }

        if (GUI.Button(new Rect(10f, 80f, 200f, 50f), "Step(2) : ExportFolders"))
        {
            ExportFolders(Selection.objects);
            if (mMenu == null)
            {
                mMenu = GetWindow(typeof(EditorMenu)) as EditorMenu;
            }
            mMenu.Close();
        }
    }