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