unity-atoms/Source/IconAssignmentPostProcessor/AssignIcon.cs
2019-06-23 22:09:21 +02:00

19 lines
458 B
C#

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