diff --git a/Instancer/Contact-Tracker Instancer.cs b/Instancer/Contact-Tracker Instancer.cs index a191ab1..bc70ec5 100644 --- a/Instancer/Contact-Tracker Instancer.cs +++ b/Instancer/Contact-Tracker 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 3fbb087..5f2f96f 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ }, "siteUrl": "https://github.com/VRLabs/Contact-Tracker", "vpmDependencies": { - "dev.vrlabs.instancer": "1.x" + "dev.vrlabs.instancer": ">=1.0.2" }, "legacyFolders": { "Assets\\VRLabs\\Contact Tracker": "9cd56b450009343a99b606696779825a"