2024-10-25 18:09:59 +08:00
|
|
|
#if UNITY_EDITOR
|
2024-10-23 17:55:55 +08:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
[System.AttributeUsage(System.AttributeTargets.Method)]
|
|
|
|
public class InspectorButtonAttribute : PropertyAttribute
|
|
|
|
{
|
|
|
|
public readonly string Name;
|
|
|
|
|
|
|
|
public InspectorButtonAttribute()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public InspectorButtonAttribute(string name)
|
|
|
|
{
|
|
|
|
Name = name;
|
|
|
|
}
|
2024-10-25 18:09:59 +08:00
|
|
|
}
|
|
|
|
#endif
|