21 lines
462 B
C#
21 lines
462 B
C#
using System;
|
|
using UnityEngine.Scripting;
|
|
|
|
namespace Module.Inspector
|
|
{
|
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
|
|
public sealed class MethodButtonAttribute: DrawerMethodAttribute
|
|
{
|
|
public readonly string name;
|
|
|
|
[Preserve]
|
|
public MethodButtonAttribute()
|
|
{
|
|
}
|
|
|
|
public MethodButtonAttribute(string name)
|
|
{
|
|
this.name = name;
|
|
}
|
|
}
|
|
} |