diff --git a/Scripts/Node.cs b/Scripts/Node.cs index cd86b95..4b68a0a 100644 --- a/Scripts/Node.cs +++ b/Scripts/Node.cs @@ -40,6 +40,12 @@ namespace XNode { /// always override the current connection Override, } + protected virtual void Reset() + { + name = this.GetType().ToString(); + var idx = name.LastIndexOf(".")+1; + name = name.Substring(idx, name.Length - idx); + } /// Tells which types of input to allow public enum TypeConstraint {