Class ExposeFieldAttribute
The attributes for exposed node fields.
Inherited Members
Namespace: Unity.VisualCompositor
Assembly: Unity.VisualCompositor.dll
Syntax
[AttributeUsage(AttributeTargets.Field)]
public class ExposeFieldAttribute : Attribute
Constructors
ExposeFieldAttribute(int, ExposeFieldAttributeType, bool, 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 |
---|---|---|
int | order | The order of the field |
ExposeFieldAttributeType | attributeType | The type of the field |
bool | 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 |
---|---|
bool |
order
The sort order of the field as used in the UI
Declaration
public readonly int order
Field Value
Type | Description |
---|---|
int |