Tri-Inspector/Runtime/Attributes/DropdownAttribute.cs

17 lines
379 B
C#
Raw Normal View History

2022-07-04 11:25:11 -04:00
using System;
using System.Diagnostics;
namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
[Conditional("UNITY_EDITOR")]
public sealed class DropdownAttribute : Attribute
{
public string Values { get; }
public DropdownAttribute(string values)
{
Values = values;
}
}
}