blob: 1f43e6fffe9fe06c8347f629a1ee618da01a9ec5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
using UnityEngine;
namespace XNode.Examples.MathNodes {
public class Vector : XNode.Node {
[Input] public float x, y, z;
[Output] public Vector3 vector;
public override object GetValue(XNode.NodePort port) {
vector.x = GetInputValue<float>("x", this.x);
vector.y = GetInputValue<float>("y", this.y);
vector.z = GetInputValue<float>("z", this.z);
return vector;
}
}
}
|