Exemple #1
0
        private void    RefreshUnityInstalls()
        {
            this.OnDisable();

            this.unityInstallsDetected.Clear();

            for (int i = 0; i < this.unityInstallsPaths.Count; i++)
            {
                NGUnityDetectorWindow.ExtractUnityInstalls(this.unityInstallsPaths[i], this.unityInstallsDetected);
            }

            if (NGUnityDetectorWindow.UnityInstallsChanged != null)
            {
                NGUnityDetectorWindow.UnityInstallsChanged();
            }
        }
Exemple #2
0
        public static void      GetInstalls(Dictionary <string, string> installs)
        {
            installs.Clear();

            string rawPaths = EditorPrefs.GetString(NGUnityDetectorWindow.UnityInstallPathsPrefKey);

            if (string.IsNullOrEmpty(rawPaths) == false)
            {
                string[] paths = rawPaths.Split(NGUnityDetectorWindow.Separator);

                if (paths.Length > 0)
                {
                    for (int i = 0; i < paths.Length; i++)
                    {
                        NGUnityDetectorWindow.ExtractUnityInstalls(paths[i], installs);
                    }
                }
            }
        }