Skip to content

Commit 46fdd62

Browse files
committed
fix adding grammar from StreamingAssets
1 parent d3d5d7f commit 46fdd62

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Runtime/LLMUnitySetup.cs

+3
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,9 @@ public static string AddAsset(string assetPath)
420420
LogError($"{assetPath} does not exist!");
421421
return null;
422422
}
423+
string assetDir = GetAssetPath();
424+
if (IsSubPath(assetPath, assetDir)) return RelativePath(assetPath, assetDir);
425+
423426
string filename = Path.GetFileName(assetPath);
424427
string fullPath = GetAssetPath(filename);
425428
AssetDatabase.StartAssetEditing();

0 commit comments

Comments
 (0)