public void Apply() { foreach (ModuleLink moduleLink in modules) { ModuleInstaller.Install(moduleLink); } AssetsUtil.TriggerPostprocessEvent(); }
private void ResolveDependency(PluginDependencyType type, string id) { switch (type) { case PluginDependencyType.Plugin: Install(AssetDatabase.LoadAssetAtPath <PluginInfo>(id)); break; case PluginDependencyType.DefineSymbol: DefineSymbols.Add(id, ""); break; case PluginDependencyType.Package: string[] package = id.Split(':'); Util.AddDependencyToPackageManifest(package[0], package[1]); break; case PluginDependencyType.Module: ModuleInstaller.Install(AssetDatabase.LoadAssetAtPath <ModuleInstallInfo>(id).GenerateLink()); break; } EditorApplication.delayCall += Refresh; }
private static void InstallModule(ModuleInstallInfo moduleInstallInfo) { ModuleInstaller.Install(moduleInstallInfo.GenerateLink()); }