using System;
namespace UnityEngine.Localization
{
///
/// Specify a custom name to be used when displayed in the Editor.
///
///
/// This example shows how Metadata can be given a custom name.
///
///
[AttributeUsage(AttributeTargets.All, AllowMultiple = false)]
public class DisplayNameAttribute : Attribute
{
///
/// The custom name to use when displayed in the Editor.
///
public string Name { get; set; }
///
/// Path to a Texture file to display as an icon.
///
public string IconPath { get; set; }
///
/// Specify a custom name to display in the Editor.
///
/// The name to display.
/// Optional icon to display when possible.
public DisplayNameAttribute(string name, string iconPath = null)
{
Name = name;
IconPath = iconPath;
}
}
}