Added MaterialHelpers;

This commit is contained in:
Misaki
2024-12-18 00:14:15 +09:00
parent a9095d9636
commit a93660b771
226 changed files with 327 additions and 6437 deletions

View File

@@ -0,0 +1,18 @@
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<DecalProjector>();
PrefabUtility.SaveAsPrefabAsset(decal, path);
Object.DestroyImmediate(decal);
return AssetDatabase.LoadAssetAtPath<GameObject>(path);
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 4e43fc7bacddd9a46ba17e461058fc90