Class DisplayNameAttribute
Indicates a custom name to be used when displayed in a list in the inspector.
Inheritance
DisplayNameAttribute
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
Constructors
DisplayNameAttribute(String)
Declaration
public DisplayNameAttribute(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Properties
Name
Declaration
public string Name { get; set; }
Property Value