Esempio n. 1
0
        private void onAddDependencies(string packageName, string version)
        {
            if (string.IsNullOrEmpty(packageName) || string.IsNullOrEmpty(version))
            {
                Debug.LogWarning("PackageName and Version cannot be null.");
                return;
            }
            model.ManifestJsonData["dependencies"][packageName] = version;

            FileUtility.SaveManifestJson(convertPackagJsonString(model.ManifestJsonData));
            CustomPackageManagerWindow.PreferenceView();
            view.Reload();
            AssetDatabase.Refresh();

            Debug.Log($"CustomPackageManager: Add package [ {packageName} : {version} ], wait for resolving package by PackageManager...");
        }
Esempio n. 2
0
 private void reloadProcess()
 {
     CustomPackageManagerWindow.PreferenceView();
     view.Reload();
     AssetDatabase.Refresh();
 }