【a】可视化剧本编辑器 10.StoryEditor
This commit is contained in:
14
Assets/10.StoryEditor/Editor/Graph/ScriptGraphEditor.cs
Normal file
14
Assets/10.StoryEditor/Editor/Graph/ScriptGraphEditor.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using XNodeEditor;
|
||||
|
||||
namespace Stary.Evo.StoryEditor.Editor
|
||||
{
|
||||
[CustomNodeGraphEditor(typeof(ScriptGraph))]
|
||||
public class ScriptGraphEditor : NodeGraphEditor
|
||||
{
|
||||
public override void OnOpen()
|
||||
{
|
||||
base.OnOpen();
|
||||
NodeEditorWindow.current.panOffset = new(-350, -75);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user