private bool AnyPackageInstalledFromRegistry(string registryName)
 {
     if (string.IsNullOrEmpty(registryName))
     {
         return(false);
     }
     if (!m_UpmCache.installedPackageInfos.Any())
     {
         m_UpmCache.SetInstalledPackageInfos(PackageInfo.GetAllRegisteredPackages());
     }
     return(m_UpmCache.installedPackageInfos.Any(p => p.registry?.name == registryName));
 }
Ejemplo n.º 2
0
 public virtual bool IsAnyExperimentalPackagesInUse()
 {
     return(PackageInfo.GetAllRegisteredPackages().Any(info => (info.version.Contains("-preview") || info.version.Contains("-exp.") || info.version.StartsWith("0.")) && IsUnityPackage(info)));
 }