Class DisplayNameAttribute
Use this attribute on fields and properties to change the display name shown when inspected.
Inherited Members
Namespace: Unity.Properties.UI
Assembly: Unity.Properties.UI.dll
Syntax
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public class DisplayNameAttribute : InspectorAttribute
Constructors
DisplayNameAttribute(string)
Constructs a new instance of DisplayNameAttribute with the provided name.
Declaration
public DisplayNameAttribute(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name to use for the field or property in the inspector. |
Properties
Name
Name to display.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |