Skip to content

Commit

Permalink
Merge pull request #13 from VRLabs/fix/fix-copy-from-assets-2022
Browse files Browse the repository at this point in the history
Fix copying from Assets in 2022
  • Loading branch information
jellejurre authored Nov 13, 2024
2 parents d169e40 + fef129c commit 4103d03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Instancer.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
Expand Down Expand Up @@ -173,6 +173,7 @@ static string GetSourceFolder(string installFilePath)
#if UNITY_2019
while (!File.Exists("." + sourceFolder + "/package.json"))
#else
if (sourceFolder.StartsWith("/Assets")) sourceFolder = sourceFolder.Replace("/Assets", "./Assets");
while (!File.Exists(sourceFolder + "/package.json"))
#endif
{
Expand Down

0 comments on commit 4103d03

Please sign in to comment.