diff --git a/Scripts/Node.cs b/Scripts/Node.cs index 9996e73..27f208d 100644 --- a/Scripts/Node.cs +++ b/Scripts/Node.cs @@ -366,6 +366,19 @@ namespace XNode { this.width = width; } } + + /// Custom Port Label + [AttributeUsage(AttributeTargets.Field, AllowMultiple = true)] + public class LabelAttribute : Attribute + { + public string Label { get; } + + public LabelAttribute(string label) + { + Label = label; + } + } + #endregion [Serializable] private class NodePortDictionary : Dictionary, ISerializationCallbackReceiver {