ConverterGroup
A type to hold information about a conversion registry used locally on bindings.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public class ConverterGroup
Remarks
You can apply converter groups on a DataBinding in UXML with the or attributes or in C# script with the DataBinding.ApplyConverterGroupToSource or DataBinding.ApplyConverterGroupToUI methods.
source-to-ui-convertersui-to-source-convertersConstructors
Constructor | Description |
|---|---|
| ConverterGroup(System.String,System.String,System.String) | Creates a ConverterGroup. |
Properties
Property | Description |
|---|---|
| description | Optional description for a converter group ID that may include information about what this group contains or is used for, to be displayed to users to assist while authoring. |
| displayName | Optional and alternative name for a converter group ID, to be displayed to users to assist while authoring. |
| id | The group id. |
Methods
Method | Description |
|---|---|
| AddConverter | Adds a converter to the group. |
| TryConvert | Converts the specified value from |
| TrySetValue | Sets the value of a property at the given path to the given value, using this converter group or the global ones. |