From 49b25e755b70ec412feaaf0b898d6f7e09d2bea6 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 28 Jun 2022 09:40:37 +0800 Subject: +node example --- .../Assets/xNode-examples/Scripts/Attributes/NodeEnum.cs | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Other/NodeEditorExamples/Assets/xNode-examples/Scripts/Attributes/NodeEnum.cs (limited to 'Other/NodeEditorExamples/Assets/xNode-examples/Scripts/Attributes/NodeEnum.cs') diff --git a/Other/NodeEditorExamples/Assets/xNode-examples/Scripts/Attributes/NodeEnum.cs b/Other/NodeEditorExamples/Assets/xNode-examples/Scripts/Attributes/NodeEnum.cs new file mode 100644 index 00000000..9cdaef4c --- /dev/null +++ b/Other/NodeEditorExamples/Assets/xNode-examples/Scripts/Attributes/NodeEnum.cs @@ -0,0 +1,5 @@ +using UnityEngine; + +/// Draw enums correctly within nodes. Without it, enums show up at the wrong positions. +/// Enums with this attribute are not detected by EditorGui.ChangeCheck due to waiting before executing +public class NodeEnumAttribute : PropertyAttribute { } \ No newline at end of file -- cgit v1.1-26-g67d0