Upload project files
This commit is contained in:
26
Editor/LightPreset/LightPresetDatabase.cs
Normal file
26
Editor/LightPreset/LightPresetDatabase.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Misaki.ArtToolEditor
|
||||
{
|
||||
[CreateAssetMenu(fileName = "LightPresetDatabase", menuName = "Lighting Tools/LightPresetDatabase")]
|
||||
public class LightPresetDatabase : ScriptableObject
|
||||
{
|
||||
public List<LightPreset> lightPreset = new();
|
||||
}
|
||||
|
||||
[CustomEditor(typeof(LightPresetDatabase))]
|
||||
public class LightPresetDatabaseEditor : Editor
|
||||
{
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
base.OnInspectorGUI();
|
||||
|
||||
if (GUILayout.Button("Refresh Menu Item"))
|
||||
{
|
||||
LightPresetMenu.Initialize();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user