mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 16:28:23 -05:00
19 lines
463 B
C#
19 lines
463 B
C#
using System;
|
|
using System.Diagnostics;
|
|
|
|
namespace TriInspector
|
|
{
|
|
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
|
|
[Conditional("UNITY_EDITOR")]
|
|
public class DropdownAttribute : Attribute
|
|
{
|
|
public string Values { get; }
|
|
|
|
public TriMessageType ValidationMessageType { get; set; } = TriMessageType.Error;
|
|
|
|
public DropdownAttribute(string values)
|
|
{
|
|
Values = values;
|
|
}
|
|
}
|
|
} |