using UnityEditor; using UnityEngine; using UnityEngine.Rendering.HighDefinition; namespace Misaki.ArtToolEditor { public static class AssetCreationHelpers { public static GameObject CreateDecal(string path) { var decal = new GameObject("Temp_Decal"); decal.AddComponent(); PrefabUtility.SaveAsPrefabAsset(decal, path); Object.DestroyImmediate(decal); return AssetDatabase.LoadAssetAtPath(path); } } }