Class DisplayNameAttribute
Specify a custom name to be used when displayed in the Editor.
Namespace: UnityEngine.Localization
Syntax
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Parameter | AttributeTargets.Delegate | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter | AttributeTargets.All, AllowMultiple = false)]
public class DisplayNameAttribute : Attribute, _Attribute
Examples
This example shows how Metadata can be given a custom name.
Constructors
DisplayNameAttribute(String)
Specify a custom name to be used when displayed in the Editor.
Declaration
public DisplayNameAttribute(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name |
Properties
Name
The custom name to use when displayed in the Editor.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |