Skip to content

Commit 3d7c199

Browse files
committed
create plugin dir first
1 parent 249a18d commit 3d7c199

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Runtime/LLMUnitySetup.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,9 @@ private static async Task DownloadLibrary()
337337
string androidDir = Path.Combine(libraryPath, "android");
338338
if (Directory.Exists(androidDir))
339339
{
340-
string androidPluginDir = Path.Combine(Application.dataPath, "Plugins", "Android", Path.GetFileName(libraryPath));
341-
Directory.Move(androidDir, androidPluginDir);
340+
string androidPluginDir = Path.Combine(Application.dataPath, "Plugins", "Android");
341+
Directory.CreateDirectory(androidPluginDir);
342+
Directory.Move(androidDir, Path.Combine(androidPluginDir, Path.GetFileName(libraryPath)));
342343
}
343344
foreach (string librarySubPath in Directory.GetDirectories(libraryPath))
344345
{

0 commit comments

Comments
 (0)