1
0
mirror of https://github.com/Siccity/xNode.git synced 2026-03-26 22:49:02 +08:00
Wang Cong 7b480b6242 changed: move folder Examples into Samples~
In Package Manager UI 2.0 (compatible with Unity 2019.1), you can include samples in a package.
    https://forum.unity.com/threads/samples-in-packages-manual-setup.623080/
2019-10-21 11:37:56 +08:00

15 lines
459 B
C#

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;
}
}
}