mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 09:16:01 +08:00
15 lines
446 B
C#
15 lines
446 B
C#
using UnityEditor;
|
|
using XNodeEditor;
|
|
|
|
namespace BasicNodes {
|
|
[CustomNodeEditor(typeof(DisplayValue))]
|
|
public class DisplayValueEditor : NodeEditor {
|
|
|
|
public override void OnBodyGUI() {
|
|
base.OnBodyGUI();
|
|
NodeEditorGUILayout.PortField(target.GetInputPort("input"));
|
|
object obj = target.GetValue(null);
|
|
if (obj != null) EditorGUILayout.LabelField(obj.ToString());
|
|
}
|
|
}
|
|
} |