From fef129c6dea611338346fac5adf2473c8280705c Mon Sep 17 00:00:00 2001 From: jellejurre Date: Wed, 23 Oct 2024 16:39:32 +0200 Subject: [PATCH] Fix copying from Assets in 2022 --- Instancer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Instancer.cs b/Instancer.cs index 5ddf2ce..c273c2b 100644 --- a/Instancer.cs +++ b/Instancer.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.IO; using System.Linq; using System.Text.RegularExpressions; @@ -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 {