mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 08:18:49 -05:00
28 lines
595 B
C#
28 lines
595 B
C#
using System;
|
|
using System.Diagnostics;
|
|
|
|
namespace TriInspector
|
|
{
|
|
[AttributeUsage(AttributeTargets.Method)]
|
|
[Conditional("UNITY_EDITOR")]
|
|
public class ButtonAttribute : Attribute
|
|
{
|
|
public ButtonAttribute()
|
|
{
|
|
}
|
|
|
|
public ButtonAttribute(string name)
|
|
{
|
|
Name = name;
|
|
}
|
|
|
|
public ButtonAttribute(ButtonSizes buttonSize, string name = null)
|
|
{
|
|
ButtonSize = (int) buttonSize;
|
|
Name = name;
|
|
}
|
|
|
|
public string Name { get; set; }
|
|
public int ButtonSize { get; }
|
|
}
|
|
} |