docs.unity3d.com
    目次を表示する/隠す

    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
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)