Files
Two-World/Assets/Cainos/Third Party/Lucid Editor/Runtime/Attributes/ButtonAttribute.cs
2025-05-08 16:03:30 +09:00

29 lines
671 B
C#

using System;
namespace Cainos.LucidEditor
{
[AttributeUsage(AttributeTargets.Method)]
public class ButtonAttribute : Attribute
{
public readonly string label = null;
public readonly InspectorButtonSize size = InspectorButtonSize.Small;
public ButtonAttribute() { }
public ButtonAttribute(string label)
{
this.label = label;
}
public ButtonAttribute(InspectorButtonSize size)
{
this.size = size;
}
public ButtonAttribute(string label, InspectorButtonSize size)
{
this.label = label;
this.size = size;
}
}
}