From df128a700ff074e8c2df3f3e909de0cbe2d71695 Mon Sep 17 00:00:00 2001 From: Antonis Makropoulos Date: Wed, 28 Jan 2026 15:47:20 +0200 Subject: [PATCH 1/7] fix running in Editor with Android/iOS platform selected --- Runtime/LLMUnitySetup.cs | 2 +- Runtime/LlamaLib/LibraryLoader.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Runtime/LLMUnitySetup.cs b/Runtime/LLMUnitySetup.cs index 2d8ccb9f..543f417d 100644 --- a/Runtime/LLMUnitySetup.cs +++ b/Runtime/LLMUnitySetup.cs @@ -318,7 +318,7 @@ public static async Task AndroidExtractFile(string assetName, bool overwrite = f { if (!androidExtractTasks.TryGetValue(assetName, out extractionTask)) { -#if UNITY_ANDROID +#if !UNITY_EDITOR && UNITY_ANDROID extractionTask = AndroidExtractFileOnce(assetName, overwrite, log, chunkSize); #else extractionTask = Task.CompletedTask; diff --git a/Runtime/LlamaLib/LibraryLoader.cs b/Runtime/LlamaLib/LibraryLoader.cs index 6893cfde..aae01bed 100644 --- a/Runtime/LlamaLib/LibraryLoader.cs +++ b/Runtime/LlamaLib/LibraryLoader.cs @@ -40,7 +40,7 @@ public static IntPtr LoadLibrary(string libraryPath) if (string.IsNullOrEmpty(libraryPath)) throw new ArgumentNullException(nameof(libraryPath)); -#if (ANDROID || IOS || VISIONOS) || (UNITY_ANDROID || UNITY_IOS || UNITY_VISIONOS) +#if (ANDROID || IOS || VISIONOS) || (!UNITY_EDITOR && (UNITY_ANDROID || UNITY_IOS || UNITY_VISIONOS)) return Mobile.dlopen(libraryPath); #else if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) @@ -64,7 +64,7 @@ public static IntPtr GetSymbol(IntPtr library, string symbolName) if (string.IsNullOrEmpty(symbolName)) throw new ArgumentNullException(nameof(symbolName)); -#if (ANDROID || IOS || VISIONOS) || (UNITY_ANDROID || UNITY_IOS || UNITY_VISIONOS) +#if (ANDROID || IOS || VISIONOS) || (!UNITY_EDITOR && (UNITY_ANDROID || UNITY_IOS || UNITY_VISIONOS)) return Mobile.dlsym(library, symbolName); #else if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) @@ -86,7 +86,7 @@ public static void FreeLibrary(IntPtr library) if (library == IntPtr.Zero) return; -#if (ANDROID || IOS || VISIONOS) || (UNITY_ANDROID || UNITY_IOS || UNITY_VISIONOS) +#if (ANDROID || IOS || VISIONOS) || (!UNITY_EDITOR && (UNITY_ANDROID || UNITY_IOS || UNITY_VISIONOS)) Mobile.dlclose(library); #else if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) @@ -192,7 +192,7 @@ private static class Mobile { public static IntPtr dlopen(string path) => dlopen(path, 1); -#if (ANDROID || IOS || VISIONOS) || (UNITY_ANDROID || UNITY_IOS || UNITY_VISIONOS) +#if (ANDROID || IOS || VISIONOS) || (!UNITY_EDITOR && (UNITY_ANDROID || UNITY_IOS || UNITY_VISIONOS)) [DllImport("__Internal")] public static extern IntPtr dlopen(string filename, int flags); From 16027932ca383cf45e004485ea909525ec59f236 Mon Sep 17 00:00:00 2001 From: amakropoulos Date: Wed, 28 Jan 2026 13:57:42 +0000 Subject: [PATCH 2/7] update changelogs --- CHANGELOG.md | 6 ++++++ CHANGELOG.release.md | 5 ++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6fefb893..3600966a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## v3.0.1 +#### 🐛 Fixes + +- fix running in Editor with Android/iOS platform selected (PR: #378) + + ## v2.5.2 #### 🚀 Features diff --git a/CHANGELOG.release.md b/CHANGELOG.release.md index 86892386..08f64230 100644 --- a/CHANGELOG.release.md +++ b/CHANGELOG.release.md @@ -1,5 +1,4 @@ -### 🚀 Features +### 🐛 Fixes -- Support Android x86-64 architecture (Magic Leap 2) (PR: #344) -- Combine ARM and Intel architectures of macOS (PR: #345) +- fix running in Editor with Android/iOS platform selected (PR: #378) From 933b875871899e3d1b2e0579b2bdd0000569ceaa Mon Sep 17 00:00:00 2001 From: Antonis Makropoulos Date: Wed, 28 Jan 2026 15:10:03 +0200 Subject: [PATCH 3/7] add Unity.Nuget.Newtonsoft-Json in the assembly definition --- Editor/undream.llmunity.Editor.asmdef | 5 +++-- Runtime/undream.llmunity.Runtime.asmdef | 5 +++-- Tests/Editor/undream.llmunity.Editor.Tests.asmdef | 3 ++- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Editor/undream.llmunity.Editor.asmdef b/Editor/undream.llmunity.Editor.asmdef index 34c98f0a..1e64643e 100644 --- a/Editor/undream.llmunity.Editor.asmdef +++ b/Editor/undream.llmunity.Editor.asmdef @@ -4,6 +4,7 @@ "Editor" ], "references": [ - "undream.llmunity.Runtime" + "undream.llmunity.Runtime", + "Unity.Nuget.Newtonsoft-Json" ] -} \ No newline at end of file +} diff --git a/Runtime/undream.llmunity.Runtime.asmdef b/Runtime/undream.llmunity.Runtime.asmdef index 800db04c..d6bef159 100644 --- a/Runtime/undream.llmunity.Runtime.asmdef +++ b/Runtime/undream.llmunity.Runtime.asmdef @@ -1,6 +1,7 @@ { "name": "undream.llmunity.Runtime", "references": [ - "Cloud.Unum.USearch" + "Cloud.Unum.USearch", + "Unity.Nuget.Newtonsoft-Json" ] -} \ No newline at end of file +} diff --git a/Tests/Editor/undream.llmunity.Editor.Tests.asmdef b/Tests/Editor/undream.llmunity.Editor.Tests.asmdef index d90631b6..17e26c89 100644 --- a/Tests/Editor/undream.llmunity.Editor.Tests.asmdef +++ b/Tests/Editor/undream.llmunity.Editor.Tests.asmdef @@ -1,7 +1,8 @@ { "name": "undream.llmunity.Editor.Tests", "references": [ - "undream.llmunity.Runtime" + "undream.llmunity.Runtime", + "Unity.Nuget.Newtonsoft-Json" ], "optionalUnityReferences": [ "TestAssemblies" From a0ae46ebd622642170bf7d6826f3758bc939185b Mon Sep 17 00:00:00 2001 From: amakropoulos Date: Wed, 28 Jan 2026 14:02:45 +0000 Subject: [PATCH 4/7] update changelogs --- CHANGELOG.md | 4 ++++ CHANGELOG.release.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3600966a..f7762388 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ ## v3.0.1 +#### 🚀 Features + +- add Unity.Nuget.Newtonsoft-Json in the assembly definition (PR: #379) + #### 🐛 Fixes - fix running in Editor with Android/iOS platform selected (PR: #378) diff --git a/CHANGELOG.release.md b/CHANGELOG.release.md index 08f64230..195f549d 100644 --- a/CHANGELOG.release.md +++ b/CHANGELOG.release.md @@ -1,3 +1,7 @@ +### 🚀 Features + +- add Unity.Nuget.Newtonsoft-Json in the assembly definition (PR: #379) + ### 🐛 Fixes - fix running in Editor with Android/iOS platform selected (PR: #378) From 8968529b0996fdc6520e23027a6fa3c3dc65b566 Mon Sep 17 00:00:00 2001 From: Antonis Makropoulos Date: Wed, 28 Jan 2026 16:05:04 +0200 Subject: [PATCH 5/7] Update LlamaLib to v2.0.2 (llama.cpp b7777) --- Runtime/LLMUnitySetup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/LLMUnitySetup.cs b/Runtime/LLMUnitySetup.cs index 543f417d..a9388405 100644 --- a/Runtime/LLMUnitySetup.cs +++ b/Runtime/LLMUnitySetup.cs @@ -98,7 +98,7 @@ public class LLMUnitySetup /// LLM for Unity version public static string Version = "v3.0.0"; /// LlamaLib version - public static string LlamaLibVersion = "v2.0.0"; + public static string LlamaLibVersion = "v2.0.2"; /// LlamaLib release url public static string LlamaLibReleaseURL = $"https://github.com/undreamai/LlamaLib/releases/download/{LlamaLibVersion}"; /// LlamaLib name From ee481f90f89339c299c64f2ab9bed99bc54dd2bf Mon Sep 17 00:00:00 2001 From: amakropoulos Date: Wed, 28 Jan 2026 14:06:20 +0000 Subject: [PATCH 6/7] update changelogs --- CHANGELOG.md | 1 + CHANGELOG.release.md | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f7762388..e3f0e949 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ #### 🚀 Features - add Unity.Nuget.Newtonsoft-Json in the assembly definition (PR: #379) +- Update LlamaLib to v2.0.2 (llama.cpp b7777) (PR: #380) #### 🐛 Fixes diff --git a/CHANGELOG.release.md b/CHANGELOG.release.md index 195f549d..528b3124 100644 --- a/CHANGELOG.release.md +++ b/CHANGELOG.release.md @@ -1,6 +1,7 @@ ### 🚀 Features - add Unity.Nuget.Newtonsoft-Json in the assembly definition (PR: #379) +- Update LlamaLib to v2.0.2 (llama.cpp b7777) (PR: #380) ### 🐛 Fixes From d6f49f4ed4ff671f0cda143044fdf023a5e757b6 Mon Sep 17 00:00:00 2001 From: amakropoulos Date: Wed, 28 Jan 2026 14:06:39 +0000 Subject: [PATCH 7/7] update VERSION --- .github/doxygen/Doxyfile | 2 +- Runtime/LLMUnitySetup.cs | 2 +- VERSION | 2 +- package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/doxygen/Doxyfile b/.github/doxygen/Doxyfile index 3786c0a5..292a4a8e 100644 --- a/.github/doxygen/Doxyfile +++ b/.github/doxygen/Doxyfile @@ -48,7 +48,7 @@ PROJECT_NAME = "LLM for Unity" # could be handy for archiving the generated documentation or if some version # control system is used. -PROJECT_NUMBER = v3.0.0 +PROJECT_NUMBER = v3.0.1 # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a diff --git a/Runtime/LLMUnitySetup.cs b/Runtime/LLMUnitySetup.cs index a9388405..953703f8 100644 --- a/Runtime/LLMUnitySetup.cs +++ b/Runtime/LLMUnitySetup.cs @@ -96,7 +96,7 @@ public class LLMUnitySetup { // DON'T CHANGE! the version is autocompleted with a GitHub action /// LLM for Unity version - public static string Version = "v3.0.0"; + public static string Version = "v3.0.1"; /// LlamaLib version public static string LlamaLibVersion = "v2.0.2"; /// LlamaLib release url diff --git a/VERSION b/VERSION index ad55eb85..b105cea1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v3.0.0 +v3.0.1 diff --git a/package.json b/package.json index 0dea1d41..a5890f82 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ai.undream.llm", - "version": "3.0.0", + "version": "3.0.1", "displayName": "LLM for Unity", "description": "LLM for Unity allows to run and distribute Large Language Models (LLMs) in the Unity engine.", "unity": "2022.3",