文档

Unity Engine

Unity Engine

RegisterGlobalConverter<TSource, TDestination>(TypeConverter<TSource, TDestination>)

Registers a global UI conversion delegate that will be used when converting data between a data source and a UI control. This delegate will be used both when converting data from and to UI.
阅读时间1 分钟最后更新于 1 个月前

Definition

RegisterGlobalConverter<T, U>(TypeConverter<T, T>)

public static void RegisterGlobalConverter<TSource, TDestination>(TypeConverter<TSource, TDestination> converter)

Parameters

The delegate that handles the conversion.