1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 09:16:01 +08:00

Made NodeGraphiEditor's OnGui method virtual and protected, so it can be extended by adding additional content/widgets to be drawn. (#214)

This commit is contained in:
Andrei 2019-12-15 12:52:22 +02:00 committed by Thor Brigsted
parent d54a03988a
commit 5005b5e4f9

2
Scripts/Editor/NodeEditorGUI.cs Normal file → Executable file
View File

@ -17,7 +17,7 @@ namespace XNodeEditor {
public event Action onLateGUI; public event Action onLateGUI;
private static readonly Vector3[] polyLineTempArray = new Vector3[2]; private static readonly Vector3[] polyLineTempArray = new Vector3[2];
private void OnGUI() { protected virtual void OnGUI() {
Event e = Event.current; Event e = Event.current;
Matrix4x4 m = GUI.matrix; Matrix4x4 m = GUI.matrix;
if (graph == null) return; if (graph == null) return;