//pipelinedefine #define H_URP #if UNITY_EDITOR using System; using System.Collections; // UNITY 6 using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using UnityEngine; using UnityEngine.Rendering; namespace HTraceWSGI.Scripts.PipelinesConfigurator { public static class ConfiguratorUtils { public static string GetHTraceFolderPath() { //string filePath = AssetDatabase.GetAssetPath(MonoScript.FromMonoBehaviour(this)); string filePath = new System.Diagnostics.StackTrace(true).GetFrame(0).GetFileName(); string htraceFolder = Directory.GetParent(Directory.GetParent(Path.GetDirectoryName(filePath)).FullName).FullName; return htraceFolder; } } } #endif