1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 17:26:02 +08:00
xNode/Examples/Nodes/BaseNode.cs
2017-09-21 13:22:34 +02:00

21 lines
585 B
C#

using UnityEngine;
[System.Serializable]
public class BaseNode : Node {
public bool concat;
[TextArea]
public string SomeString;
[Header("New stuff")]
public Color col;
public AnimationCurve anim;
public Vector3 vec;
protected override void Init() {
inputs = new NodePort[2];
inputs[0] = CreateNodeInput("IntInput", typeof(int));
inputs[1] = CreateNodeInput("StringInput", typeof(string));
outputs = new NodePort[1];
outputs[0] = CreateNodeOutput("StringOutput", typeof(string));
}
}