mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-23 16:48:23 -05:00
19 lines
458 B
C#
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; }
|
|
}
|
|
}
|