18 lines
331 B
C#
18 lines
331 B
C#
#if UNITY_EDITOR
|
|
using UnityEngine;
|
|
|
|
[System.AttributeUsage(System.AttributeTargets.Method)]
|
|
public class InspectorButtonAttribute : PropertyAttribute
|
|
{
|
|
public readonly string Name;
|
|
|
|
public InspectorButtonAttribute()
|
|
{
|
|
}
|
|
|
|
public InspectorButtonAttribute(string name)
|
|
{
|
|
Name = name;
|
|
}
|
|
}
|
|
#endif |