using UnityEditor; [InitializeOnLoad] public static class HybridCLRPackageSetup { public const string PackageName = "com.code-philosophy.hybridclr"; public const string PackageUrl = "https://gitee.com/focus-creative-games/hybridclr_unity.git#v9.0.3"; static readonly EditorPackageInstaller Installer = new EditorPackageInstaller( PackageName, PackageUrl, "HybridCLR", "AppRuntimes.HybridCLR", "Open AppSettings and retry."); static HybridCLRPackageSetup() => Installer.Schedule(); public static bool IsInstalled => Installer.IsInstalled; public static bool IsInstalling => Installer.IsInstalling; public static string LastError => Installer.LastError; public static void RetryInstallation() => Installer.Retry(); }