Class DisplayNameAttribute | Localization | 0.7.1-preview
docs.unity3d.com
    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
    In This Article
    • Constructors
      • DisplayNameAttribute(String)
    • Properties
      • Name
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023