Class DisplayNameAttribute | Localization | 0.8.1-preview
docs.unity.cn
    Show / Hide Table of Contents

    Class DisplayNameAttribute

    Indicates a custom name to be used when displayed in a list in the inspector.

    Inheritance
    Object
    Attribute
    DisplayNameAttribute
    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

    Constructors

    DisplayNameAttribute(String)

    Declaration
    public DisplayNameAttribute(string name)
    Parameters
    Type Name Description
    String name

    Properties

    Name

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    String
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Wednesday, August 19, 2020