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

16 lines
454 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
namespace BasicNodes {
[CustomNodeEditor(typeof(DisplayValue))]
public class DisplayValueEditor : NodeEditor {
protected override void OnBodyGUI() {
base.OnBodyGUI();
object obj = target.GetValue(null);
if (obj != null) EditorGUILayout.LabelField(target.GetValue(null).ToString());
}
}
}