mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 17:26:02 +08:00
15 lines
360 B
C#
15 lines
360 B
C#
using XNode;
|
|
|
|
namespace BasicNodes {
|
|
public class DisplayValue : Node {
|
|
protected override void Init() {
|
|
base.Init();
|
|
if (!HasPort("input")) AddInstanceInput(typeof(object), "input");
|
|
}
|
|
|
|
public override object GetValue(NodePort port) {
|
|
return GetInputValue<object>("input");
|
|
}
|
|
}
|
|
}
|