mirror of
https://github.com/poiyomi/PoiyomiToonShader.git
synced 2026-12-06 00:32:24 -08:00
This is just massive housekeeping. Ready for 10.0.
This commit is contained in:
1107 files changed
+786825
-1382660
No files matched your search
+25
@@ -0,0 +1,25 @@
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace Poiyomi.ModularShaderSystem.CibbiExtensions.UI
|
||||
{
|
||||
[CustomEditor(typeof(ModuleCollection))]
|
||||
public class ModuleCollectionEditor : Editor
|
||||
{
|
||||
private VisualElement _root;
|
||||
private ModuleCollection _collection;
|
||||
|
||||
public override VisualElement CreateInspectorGUI()
|
||||
{
|
||||
_root = new VisualElement();
|
||||
_collection = (ModuleCollection)target;
|
||||
|
||||
var visualTree = Resources.Load<VisualTreeAsset>(MSSConstants.RESOURCES_FOLDER + "/MSSUIElements/ModuleCollectionEditor");
|
||||
VisualElement template = visualTree.CloneTree();
|
||||
_root.Add(template);
|
||||
|
||||
return _root;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user