unity-atoms/Packages/Core/Runtime/Attributes/EditorIcon.cs

19 lines
450 B
C#
Raw Normal View History

2019-10-02 11:21:27 -04:00
using System;
namespace UnityAtoms
{
/// <summary>
/// Specify a texture name from your assets which you want to be assigned as an icon to the MonoScript.
/// </summary>
[AttributeUsage(AttributeTargets.All, Inherited = true, AllowMultiple = false)]
2019-10-14 10:51:54 -04:00
public class EditorIcon : Attribute
2019-10-02 11:21:27 -04:00
{
2019-10-14 10:51:54 -04:00
public EditorIcon(string name)
2019-10-02 11:21:27 -04:00
{
Name = name;
}
public string Name { get; set; }
}
}