docs.unity3d.com
    Show / Hide Table of Contents

    Class ExposeFieldAttribute

    The attributes for exposed node fields.

    Inheritance
    Object
    Attribute
    ExposeFieldAttribute
    Namespace: Unity.VisualCompositor
    Syntax
    [AttributeUsage(AttributeTargets.Field)]
    public class ExposeFieldAttribute : Attribute, _Attribute

    Constructors

    ExposeFieldAttribute(Int32, ExposeFieldAttributeType, Boolean, String)

    Add a field to expose in a node.

    Declaration
    public ExposeFieldAttribute(int order = 0, ExposeFieldAttributeType attributeType = ExposeFieldAttributeType.Property, bool exposeChildren = false, string uiLabel = null)
    Parameters
    Type Name Description
    Int32 order

    The order of the field

    ExposeFieldAttributeType attributeType

    The type of the field

    Boolean exposeChildren

    Should the program try to expose the fields of the children data structure ?

    String uiLabel

    The label shown in the UI

    Fields

    exposeChildren

    Should this attribute also expose any child properties?

    Declaration
    public readonly bool exposeChildren
    Field Value
    Type Description
    Boolean

    order

    The sort order of the field as used in the UI

    Declaration
    public readonly int order
    Field Value
    Type Description
    Int32
    Back to top
    Terms of use
    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