diff --git a/Editor/Installer/InstallerWindow.cs b/Editor/Installer/InstallerWindow.cs index 345416a..0074ded 100644 --- a/Editor/Installer/InstallerWindow.cs +++ b/Editor/Installer/InstallerWindow.cs @@ -10,12 +10,14 @@ namespace HybridCLR.Editor.Installer { private InstallerController m_Controller; - string _hybridclrVersion = ""; - string _il2cppPlusVersion = ""; + string _hybridclrVersion; + string _il2cppPlusVersion; private void OnEnable() { m_Controller = new InstallerController(); + _hybridclrVersion = "1.0"; + _il2cppPlusVersion = $"{m_Controller.Il2CppBranch}-1.0"; } private void OnGUI() @@ -138,7 +140,9 @@ namespace HybridCLR.Editor.Installer private void InitHybridCLR() { - m_Controller.InitHybridCLR(m_Controller.Il2CppBranch, m_Controller.Il2CppInstallDirectory, _hybridclrVersion, _il2cppPlusVersion); + string hybridclrVersion = string.IsNullOrWhiteSpace(_hybridclrVersion) ? "1.0" : _hybridclrVersion; + string il2cppPlusVersion = string.IsNullOrWhiteSpace(_il2cppPlusVersion) ? $"{m_Controller.Il2CppBranch}-1.0" : _il2cppPlusVersion; + m_Controller.InitHybridCLR(m_Controller.Il2CppBranch, m_Controller.Il2CppInstallDirectory, hybridclrVersion, il2cppPlusVersion); } private void UpdateHybridCLR() diff --git a/package.json b/package.json index e0f2a84..c5c7fff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.focus-creative-games.hybridclr_unity", - "version": "1.0.3", + "version": "1.0.4", "displayName": "HybridCLR", "description": "Unity package for HybridCLR. It includes editor and runtime scripts and assets for HybridCLR", "category": "Runtime",