Class LocalizedText
This is a component that references a LocalizationBucket
and hooks into its dictionary to translate either a UI Text
or a TMP_Text
component's string value.
Inheritance
System.Object
LocalizedText
Namespace: GlitchedPolygons.Localization
Assembly: UnityGlitchedLocaleClientDocs.dll
Syntax
public class LocalizedText : MonoBehaviour
Methods
| Improve this Doc View SourceGetLocalizationKey()
Gets the localization key configured in this LocalizedText instance.
Declaration
public string GetLocalizationKey()
Returns
Type | Description |
---|---|
System.String | GlitchedPolygons.Localization.LocalizedText.localizationKey |
IsInBucket(LocalizationBucket)
Checks whether or not this LocalizedText is hooked into a specific instance of a LocalizationBucket.
Declaration
public bool IsInBucket(LocalizationBucket bucket)
Parameters
Type | Name | Description |
---|---|---|
LocalizationBucket | bucket | The bucket to check against. |
Returns
Type | Description |
---|---|
System.Boolean |
|