docs.unity.cn
    Show / Hide Table of Contents

    Class DisplayNameAttribute

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

    Inheritance
    Object
    DisplayNameAttribute
    Namespace: UnityEngine.Rendering.PostProcessing
    Syntax
    public sealed class DisplayNameAttribute : 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 © 2022 Unity Technologies
    Generated by DocFX
    on Thursday, April 14, 2022
    Terms of use