1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 17:26:02 +08:00
xNode/Examples/Nodes/BaseNode.cs
Unknown 59085db16a Streamlined creation of custom node ports
Instead of initializing port arrays in Init();, ports are now defined by attributes on public fields
2017-09-24 21:54:53 +02:00

16 lines
335 B
C#

using UnityEngine;
[System.Serializable]
public class BaseNode : Node {
[Input] public string input;
[Output] public string output;
public bool concat;
[TextArea]
public string SomeString;
[Header("New stuff")]
public Color col;
public AnimationCurve anim;
public Vector3 vec;
}