mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-21 01:36:03 +08:00
16 lines
451 B
C#
16 lines
451 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
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());
|
|
}
|
|
}
|
|
} |