Class DisplayNameAttribute | Properties UI | 1.4.4-preview.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class DisplayNameAttribute

    Use this attribute on fields and properties to change the display name shown when inspected.

    Inheritance
    Object
    Attribute
    PropertyAttribute
    InspectorAttribute
    DisplayNameAttribute
    Inherited Members
    PropertyAttribute.order
    Namespace: Unity.Properties.UI
    Syntax
    [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
    public class DisplayNameAttribute : InspectorAttribute, _Attribute

    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
    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