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("x", this.x); vector.y = GetInputValue("y", this.y); vector.z = GetInputValue("z", this.z); return vector; } } }