Added new KeywordEnumTypeDrawer;

Added new method to use generic to add ui scope
This commit is contained in:
2025-08-17 13:01:40 +09:00
parent 86f0bf639c
commit 8250bc128d
9 changed files with 143 additions and 6 deletions

View File

@@ -7,7 +7,11 @@ namespace Misaki.ShaderGUI
{
public void AddUIScope(IMaterialUIScope scope);
public T GetUIScope<T>() where T : class, IMaterialUIScope;
public void AddUIScope<T>()
where T : IMaterialUIScope, new();
public T GetUIScope<T>()
where T : IMaterialUIScope;
public void Initialize(MaterialEditor materialEditor, MaterialProperty[] properties);