WXGame/Blacksmith/Assets/Script/Tool/InspectorButtonAttribute.cs

18 lines
331 B
C#
Raw Permalink Normal View History

2024-11-13 16:56:37 +08:00
#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