mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-21 01:36:03 +08:00
Update README.md
This commit is contained in:
parent
86c7966fe6
commit
46e32234f3
@ -37,8 +37,8 @@ public class MathNode : Node {
|
|||||||
public override object GetValue(NodePort port) {
|
public override object GetValue(NodePort port) {
|
||||||
|
|
||||||
// Get new a and b values from input connections. Fallback to field values if input is not connected
|
// Get new a and b values from input connections. Fallback to field values if input is not connected
|
||||||
float a = GetInputByFieldName<float>("a", this.a);
|
float a = GetInputValue<float>("a", this.a);
|
||||||
float b = GetInputByFieldName<float>("b", this.b);
|
float b = GetInputValue<float>("b", this.b);
|
||||||
|
|
||||||
// After you've gotten your input values, you can perform your calculations and return a value
|
// After you've gotten your input values, you can perform your calculations and return a value
|
||||||
if (port.fieldName == "result")
|
if (port.fieldName == "result")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user