【a】可视化剧本编辑器 10.StoryEditor
This commit is contained in:
19
Assets/10.StoryEditor/Editor/Node/BeginNodeEditor.cs
Normal file
19
Assets/10.StoryEditor/Editor/Node/BeginNodeEditor.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using UnityEditor;
|
||||
using XNodeEditor;
|
||||
|
||||
namespace Stary.Evo.StoryEditor.Editor
|
||||
{
|
||||
[CustomNodeEditor(typeof(BeginNode))]
|
||||
public class BeginNodeEditor : NodeEditor
|
||||
{
|
||||
public override void OnBodyGUI()
|
||||
{
|
||||
serializedObject.Update();
|
||||
|
||||
EditorGUILayout.LabelField("剧本开始");
|
||||
base.OnBodyGUI();
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user