Rasagar/Library/PackageCache/com.unity.visualscripting/Runtime/VisualScripting.Flow/EditorBinding/PortKeyAttribute.cs

18 lines
406 B
C#
Raw Normal View History

2024-08-26 13:07:20 -07:00
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; }
}
}