TowerBuildGame/Tower Build Game/Assets/Scripts/UnityUI/EditorButtonAttribute.cs

34 lines
763 B
C#
Raw Normal View History

2025-05-12 05:50:37 +03:00
/*
* Author: Nikolay Dvurechensky
* Site: https://www.dvurechensky.pro/
* Gmail: dvurechenskysoft@gmail.com
* Last Updated: 12 мая 2025 05:48:46
* Version: 1.0.4
*/
2024-10-05 09:11:13 +03:00
using System;
namespace CustomAttributes
{
/// <summary>
2025-05-12 05:50:37 +03:00
/// Нажатие на кнопку в редакторе
2024-10-05 09:11:13 +03:00
/// </summary>
[AttributeUsage(AttributeTargets.Method)]
public class EditorButtonAttribute : Attribute
{
/// <summary>
/// Button text
/// </summary>
public string name;
/// <summary>
/// Add Button to Inspector
/// </summary>
/// <param name="name">Button text</param>
public EditorButtonAttribute(string name)
{
this.name = name;
}
}
}