From a71c13bc471e786e82ad29b249557cd532808e3e Mon Sep 17 00:00:00 2001 From: Andrei Bogdan Date: Mon, 2 Dec 2019 13:35:54 +0200 Subject: [PATCH] Made NodeGraphiEditor's OnGui method virtual and protected, so it can be extended by adding additional content/widgets to be drawn. --- Scripts/Editor/NodeEditorGUI.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 Scripts/Editor/NodeEditorGUI.cs diff --git a/Scripts/Editor/NodeEditorGUI.cs b/Scripts/Editor/NodeEditorGUI.cs old mode 100644 new mode 100755 index 74530d8..358b2e5 --- a/Scripts/Editor/NodeEditorGUI.cs +++ b/Scripts/Editor/NodeEditorGUI.cs @@ -17,7 +17,7 @@ namespace XNodeEditor { public event Action onLateGUI; private static readonly Vector3[] polyLineTempArray = new Vector3[2]; - private void OnGUI() { + protected virtual void OnGUI() { Event e = Event.current; Matrix4x4 m = GUI.matrix; if (graph == null) return;