Class ExposeFieldAttribute
The attributes for exposed node fields.
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 |