We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3d5d7f commit 46fdd62Copy full SHA for 46fdd62
Runtime/LLMUnitySetup.cs
@@ -420,6 +420,9 @@ public static string AddAsset(string assetPath)
420
LogError($"{assetPath} does not exist!");
421
return null;
422
}
423
+ string assetDir = GetAssetPath();
424
+ if (IsSubPath(assetPath, assetDir)) return RelativePath(assetPath, assetDir);
425
+
426
string filename = Path.GetFileName(assetPath);
427
string fullPath = GetAssetPath(filename);
428
AssetDatabase.StartAssetEditing();
0 commit comments