Singularity/Library/PackageCache/com.unity.visualscripting@1.../Runtime/VisualScripting.Flow/EditorBinding/PortKeyAttribute.cs
2024-05-06 11:45:45 -07:00

18 lines
406 B
C#

using System;
namespace Unity.VisualScripting
{
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public class PortKeyAttribute : Attribute
{
public PortKeyAttribute(string key)
{
Ensure.That(nameof(key)).IsNotNull(key);
this.key = key;
}
public string key { get; }
}
}