Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ConverterGroup

A type to hold information about a conversion registry used locally on bindings.
Read time 1 minuteLast updated 4 days ago

Definition

public class ConverterGroup

Remarks

You can apply converter groups on a DataBinding in UXML with the
source-to-ui-converters
or
ui-to-source-converters
attributes or in C# script with the DataBinding.ApplyConverterGroupToSource or DataBinding.ApplyConverterGroupToUI methods.

Constructors

Constructor

Description

ConverterGroup(System.String,System.String,System.String)Creates a ConverterGroup.

Properties

Property

Description

descriptionOptional 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.
displayNameOptional and alternative name for a converter group ID, to be displayed to users to assist while authoring.
idThe group id.

Methods

Method

Description

AddConverterAdds a converter to the group.
TryConvertConverts the specified value from
TSource
to
TDestination
using only the converter group.
TrySetValueSets the value of a property at the given path to the given value, using this converter group or the global ones.