static void OnRegisteringPackages(PackageRegistrationEventArgs args) { if (args.removed.Any(info => info.name == "com.unity.testtools.codecoverage")) { Coverage.enabled = false; } }
static void OnPackagesRegistered(PackageRegistrationEventArgs args) { if (args.added.Any()) { OnPackagesAdded(args.added); } }
static void RegisteredPackagesEventHandler(PackageRegistrationEventArgs packageRegistrationEventArgs) { if (!string.IsNullOrEmpty(PackageObject.instance.packageName) && packageRegistrationEventArgs.added.Any(package => package.name == PackageObject.instance.packageName)) { Window.Open(PackageObject.instance.packageName); PackageObject.instance.packageName = string.Empty; } }
private static void OnRegisteredPackages(PackageRegistrationEventArgs args) { var applicationProxy = ServicesContainer.instance.Resolve <ApplicationProxy>(); if (applicationProxy.isBatchMode) { return; } var pageManager = ServicesContainer.instance.Resolve <PageManager>(); pageManager.Refresh(RefreshOptions.UpmListOffline); }
static void OnRegisteringPackages(PackageRegistrationEventArgs args) { foreach (var removedPackage in args.removed) { if (removedPackage.name == "com.unity.visualscripting") { if (AssetDatabase.IsValidFolder(PluginPaths.ASSETS_FOLDER_BOLT_GENERATED)) { FileUtil.DeleteFileOrDirectory(PluginPaths.ASSETS_FOLDER_BOLT_GENERATED); FileUtil.DeleteFileOrDirectory($"{PluginPaths.ASSETS_FOLDER_BOLT_GENERATED}.meta"); } } } }
//---------------------------------------------------------------------------------------------------------------------- static void OnPackagesRegistered(PackageRegistrationEventArgs packageRegistrationEventArgs) { PackageInfo curPackage = packageRegistrationEventArgs.removed.FindPackage(StreamingImageSequenceConstants.PACKAGE_NAME); if (null == curPackage) { curPackage = packageRegistrationEventArgs.changedTo.FindPackage(StreamingImageSequenceConstants.PACKAGE_NAME); } if (null == curPackage) { return; } EditorRestartMessageNotifier.RequestNotificationOnLoad(curPackage); }
private void RegisteredPackagesEventHandler(PackageRegistrationEventArgs packageRegistrationEventArgs) { RefreshIsPreviewPackagesInUse(); }