Class TraitPropertyTypeAttribute | Semantic Traits | 0.2.8-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class TraitPropertyTypeAttribute

    Use this attribute on TraitPropertyDefinition to specify the display name shown in the Inspector.

    Inheritance
    Object
    Attribute
    PropertyAttribute
    TraitPropertyTypeAttribute
    Inherited Members
    PropertyAttribute.order
    Namespace: Unity.Semantic.Traits
    Syntax
    [AttributeUsage(AttributeTargets.Class)]
    public class TraitPropertyTypeAttribute : PropertyAttribute, _Attribute

    Constructors

    TraitPropertyTypeAttribute(String)

    Specify a display name.

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

    The name to display.

    Fields

    displayName

    Name to display 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