Esempio n. 1
0
        void Present_Explorer()
        {
            EditorGUILayout.BeginVertical(VerticalStyle);
            if (LocalConfig.Ins.FoldExplorer = EditorGUILayout.Foldout(LocalConfig.Ins.FoldExplorer, "链接", true))
            {
                EditorGUILayout.BeginHorizontal();
                if (GUILayout.Button("Persistent"))
                {
                    FileUtil.OpenExplorer(Application.persistentDataPath);
                }
                else if (GUILayout.Button("删除 Persistent"))
                {
                    FileUtil.DeletePath(Application.persistentDataPath);
                }
                EditorGUILayout.EndHorizontal();
                EditorGUILayout.BeginHorizontal();
                if (GUILayout.Button("Project File"))
                {
                    FileUtil.OpenExplorer(Const.Path_Project);
                }
                else if (GUILayout.Button("Bin"))
                {
                    FileUtil.OpenExplorer(Const.Path_Build);
                }
                EditorGUILayout.EndHorizontal();

                EditorGUILayout.BeginHorizontal();
                OnDrawPresentExplorer();
                EditorGUILayout.EndHorizontal();
            }
            EditorGUILayout.EndVertical();
        }
Esempio n. 2
0
 protected override void OnDrawWindow()
 {
     base.OnDrawWindow();
     if (RGUI.Button("游戏存档"))
     {
         FileUtil.OpenExplorer(Application.persistentDataPath);
     }
     if (RGUI.Button("游戏资源"))
     {
         FileUtil.OpenExplorer(Const.Path_StreamingAssets);
     }
     if (RGUI.Button("游戏文档"))
     {
         FileUtil.OpenExplorer(GameConfig.Ins.URLWiki);
     }
     if (RGUI.Button("游戏论坛"))
     {
         FileUtil.OpenExplorer(GameConfig.Ins.URLCommunity);
     }
     if (RGUI.Button("游戏官网"))
     {
         FileUtil.OpenExplorer(GameConfig.Ins.URLWebsite);
     }
 }