1
0
mirror of https://github.com/Siccity/xNode.git synced 2026-03-26 22:49:02 +08:00

!W(Node) one new Attribute LabelAttribute

This commit is contained in:
Icarus 2019-12-02 17:57:35 +08:00
parent e04b4fc989
commit ecb863630c

View File

@ -366,6 +366,19 @@ namespace XNode {
this.width = width;
}
}
/// <summary> Custom Port Label </summary>
[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<string, NodePort>, ISerializationCallbackReceiver {