From 96e24c04fab321fb755e81e460269b4e4262fd55 Mon Sep 17 00:00:00 2001 From: jellejurre Date: Wed, 6 Mar 2024 11:41:22 +0100 Subject: [PATCH] Add 2019 support for vcc --- Instancer/Follower Instancer.cs | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Instancer/Follower Instancer.cs b/Instancer/Follower Instancer.cs index 038f44b..ef8f3e1 100644 --- a/Instancer/Follower Instancer.cs +++ b/Instancer/Follower Instancer.cs @@ -39,9 +39,9 @@ public static void FancyPackage() return; } - var editor = ScriptableObject.CreateInstance(); - var script = MonoScript.FromScriptableObject(editor); - var assetPath = AssetDatabase.GetAssetPath(script); + var assetPath = new System.Diagnostics.StackTrace(true).GetFrame(0).GetFileName() + .Replace(System.IO.Path.GetDirectoryName(Application.dataPath), "") + .Replace("\\", "/".Replace("./", "")); instanceMethod.Invoke(null, new object[] { packageName, assetPath, excludeRegexs }); } diff --git a/package.json b/package.json index 3e6f5d7..bbc37b0 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ }, "siteUrl": "https://github.com/VRLabs/Follower", "vpmDependencies": { - "dev.vrlabs.instancer": "1.x" + "dev.vrlabs.instancer": ">=1.0.2" }, "legacyFolders": { "Assets\\VRLabs\\Follower": "f71457bcffdb2c14cb8b10d7f5ad0a93"