diff --git a/Scripts/Node.cs b/Scripts/Node.cs index 9cc7bb3..7a9f339 100644 --- a/Scripts/Node.cs +++ b/Scripts/Node.cs @@ -3,9 +3,28 @@ using System.Collections.Generic; using UnityEngine; namespace XNode { - /// Base class for all nodes + /// + /// Base class for all nodes + /// + /// + /// Classes extending this class will be considered as valid nodes by xNode. + /// + /// [System.Serializable] + /// public class Adder : Node { + /// [Input] public float a; + /// [Input] public float b; + /// [Output] public float result; + /// + /// // GetValue should be overridden to return a value for any specified output port + /// public override object GetValue(NodePort port) { + /// return a + b; + /// } + /// } + /// + /// [Serializable] public abstract class Node : ScriptableObject { + /// Used by and to determine when to display the field value associated with a public enum ShowBackingValue { /// Never show the backing value Never,