mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 17:26:02 +08:00
16 lines
545 B
C#
16 lines
545 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace BasicNodes {
|
|
[CustomNodeEditor(typeof(DisplayValue), "BasicNodes/DisplayValue")]
|
|
public class DisplayValueEditor : NodeEditor {
|
|
|
|
protected override void OnBodyGUI(out Dictionary<NodePort, Vector2> portPositions) {
|
|
base.OnBodyGUI(out portPositions);
|
|
object obj = target.GetValue(null);
|
|
if (obj != null) EditorGUILayout.LabelField(target.GetValue(null).ToString());
|
|
}
|
|
}
|
|
} |