module-inspector/Runtime/Drawers/MethodButton.cs

21 lines
435 B
C#

using System;
using UnityEngine.Scripting;
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public sealed class MethodButton: DrawerMethodAttribute
{
public readonly string name;
[Preserve]
public MethodButton()
{
}
public MethodButton(string name)
{
this.name = name;
}
}
}