mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-21 17:56:06 +08:00
14 lines
391 B
C#
14 lines
391 B
C#
using UnityEditor;
|
|
using XNodeEditor;
|
|
|
|
namespace BasicNodes {
|
|
[CustomNodeEditor(typeof(DisplayValue))]
|
|
public class DisplayValueEditor : NodeEditor {
|
|
|
|
public override void OnBodyGUI() {
|
|
base.OnBodyGUI();
|
|
object obj = target.GetValue(null);
|
|
if (obj != null) EditorGUILayout.LabelField(target.GetValue(null).ToString());
|
|
}
|
|
}
|
|
} |