diff --git a/Runtime/LLMUnitySetup.cs b/Runtime/LLMUnitySetup.cs index 67958363..69ceec15 100644 --- a/Runtime/LLMUnitySetup.cs +++ b/Runtime/LLMUnitySetup.cs @@ -420,6 +420,9 @@ public static string AddAsset(string assetPath) LogError($"{assetPath} does not exist!"); return null; } + string assetDir = GetAssetPath(); + if (IsSubPath(assetPath, assetDir)) return RelativePath(assetPath, assetDir); + string filename = Path.GetFileName(assetPath); string fullPath = GetAssetPath(filename); AssetDatabase.StartAssetEditing();