19 lines
458 B
C#
Raw Normal View History

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