2019-06-18 17:05:17 -04:00
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace UnityAtoms
|
|
|
|
{
|
2019-06-23 16:09:21 -04:00
|
|
|
/// <summary>
|
|
|
|
/// Specify a texture name from your assets that will be assigned as an icon to the MonoBehaviour.
|
|
|
|
/// </summary>
|
2019-06-18 17:05:17 -04:00
|
|
|
[AttributeUsage(AttributeTargets.All, Inherited = true, AllowMultiple = false)]
|
2019-06-23 16:09:21 -04:00
|
|
|
public class AssignIcon : Attribute
|
2019-06-18 17:05:17 -04:00
|
|
|
{
|
2019-06-23 16:09:21 -04:00
|
|
|
public AssignIcon(string iconName)
|
2019-06-18 17:05:17 -04:00
|
|
|
{
|
|
|
|
IconName = iconName;
|
|
|
|
}
|
|
|
|
|
|
|
|
public string IconName { get; set; }
|
|
|
|
}
|
|
|
|
}
|