void Awake()
    {
        instance = this;

        Debug.unityLogger.logEnabled = true;

        m_downloadButton.onClick.AddListener(StartDownload);
    }
Beispiel #2
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector(); //显示默认所有参数

        ThreadDownloadList demo = (ThreadDownloadList)target;

        if (GUILayout.Button("打开文件夹"))
        {
            //EditorUtility.OpenFolderPanel("zzh", Application.persistentDataPath, "");

            //string path = @"D:\Program Files";
            //string path = @"C:\Users\Administrator\AppData\LocalLow\setsuodu\thread";
            string path = Path.Combine(Application.persistentDataPath, "").Replace("/", @"\");
            Debug.Log(path);
            System.Diagnostics.Process.Start("explorer.exe", path);
        }
    }