mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 17:26:02 +08:00
16 lines
446 B
C#
16 lines
446 B
C#
using UnityEngine;
|
|
using XNode;
|
|
|
|
namespace BasicNodes {
|
|
public class Vector : Node {
|
|
[Input] public float x, y, z;
|
|
[Output] public Vector3 vector;
|
|
|
|
public override object GetValue(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;
|
|
}
|
|
}
|
|
} |