mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-21 01:36:03 +08:00
16 lines
457 B
C#
16 lines
457 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) {
|
|
float x = GetInputValue<float>("x", this.x);
|
|
float y = GetInputValue<float>("y", this.y);
|
|
float z = GetInputValue<float>("z", this.z);
|
|
return new Vector3(x, y, z);
|
|
}
|
|
}
|
|
} |