HybridCLRPackageSetup.cs 757 B

12345678910111213141516
  1. using UnityEditor;
  2. [InitializeOnLoad]
  3. public static class HybridCLRPackageSetup
  4. {
  5. public const string PackageName = "com.code-philosophy.hybridclr";
  6. public const string PackageUrl = "https://gitee.com/focus-creative-games/hybridclr_unity.git#v9.0.3";
  7. static readonly EditorPackageInstaller Installer = new EditorPackageInstaller(
  8. PackageName, PackageUrl, "HybridCLR", "AppRuntimes.HybridCLR", "Open AppSettings and retry.");
  9. static HybridCLRPackageSetup() => Installer.Schedule();
  10. public static bool IsInstalled => Installer.IsInstalled;
  11. public static bool IsInstalling => Installer.IsInstalling;
  12. public static string LastError => Installer.LastError;
  13. public static void RetryInstallation() => Installer.Retry();
  14. }