1
0
mirror of https://github.com/Siccity/xNode.git synced 2026-03-26 22:49:02 +08:00

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

This commit is contained in:
Andrei Bogdan 2019-12-02 13:35:54 +02:00
parent d54a03988a
commit a71c13bc47

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;