Correspondence between Setter Components and Display Components
Last updated
Last updated
The following table is a list of setters corresponding to the various display components:
How to choose between UITextStaticSetter and UITextSetter?
UITextSetter is usually used for the localization of dynamic splicing text, and there is no need to display static text.
UITextStaticSetter is usually used to display static text that needs to be localized, and it can also be used for localization of dynamic spliced text, because it inherits all the functions of UITextSetter.
Required localization components
The corresponding setter
Text (Ugui) component
UITextStaticSetter or UITextSetter
A TextMeshPro or TextMeshProUGUI component that inherits from TMP_Text
UITextStaticSetter or UITextSetter
The DropDown(Ugui) or TMP_DropDown component
DropDownSetter
Various font Settings for the Text (Ugui) component
FontLeafSetter
Multiple font Settings for TextMeshPro or TextMeshProUGUI components that inherit from TMP_Text
TMPFontSetter
AudioSource component
AudioLeafSetter
VideoSource component
VideoLeafSetter
Switch Transform Children
PrefabLeafSetter
Image (Ugui) component
SpriteLeafSetter
RawImage component
TextureLeafSetter
Component custom localization capabilities
ObjectLeafSetter Abstract class