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