Class DisplayNameAttribute | Post Processing | 2.3.0
docs.unity3d.com
    Show / Hide Table of Contents

    Class DisplayNameAttribute

    Use this attribute to change the label of a field displayed in the inspector.

    Inheritance
    Object
    Attribute
    DisplayNameAttribute
    Namespace: UnityEngine.Rendering.PostProcessing
    Syntax
    [AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
    public sealed class DisplayNameAttribute : Attribute, _Attribute

    Constructors

    DisplayNameAttribute(String)

    Creates a new attribute.

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

    The label to display in the inspector

    Fields

    displayName

    The label displayed in the inspector.

    Declaration
    public readonly string displayName
    Field 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