WXGame/box1/Assets/Script/Tool/InspectorButtonAttribute.cs
2024-10-25 18:09:59 +08:00

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