From f0519a9308e1f4e52dd1e999aa8e47608d2ec1ab Mon Sep 17 00:00:00 2001 From: jellejurre Date: Wed, 23 Oct 2024 11:57:33 +0200 Subject: [PATCH 1/2] Dont rename by default --- Instancer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Instancer.cs b/Instancer.cs index a819726..5ddf2ce 100644 --- a/Instancer.cs +++ b/Instancer.cs @@ -15,7 +15,7 @@ public class Instancer : MonoBehaviour static Instancer() { - renameInstances = PlayerPrefs.GetString("VRLabs.Instancer.RenameInstances", "True") == "True"; ; + renameInstances = PlayerPrefs.GetString("VRLabs.Instancer.RenameInstances", "False") == "True"; ; } [MenuItem("VRLabs/Rename new Instances", priority = 1)] From fef129c6dea611338346fac5adf2473c8280705c Mon Sep 17 00:00:00 2001 From: jellejurre Date: Wed, 23 Oct 2024 16:39:32 +0200 Subject: [PATCH 2/2] 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 {