mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-21 01:36:03 +08:00
14 lines
282 B
C#
14 lines
282 B
C#
[System.Serializable]
|
|
public class ConstantValue : ExampleNodeBase {
|
|
public float a;
|
|
[Output] public float value;
|
|
|
|
protected override void Init() {
|
|
name = "Constant Value";
|
|
}
|
|
|
|
public override object GetValue(NodePort port) {
|
|
return a;
|
|
}
|
|
}
|