Show / Hide Table of Contents

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 Source

GetLocalizationKey()

Gets the localization key configured in this LocalizedText instance.

Declaration
public string GetLocalizationKey()
Returns
Type Description
System.String

GlitchedPolygons.Localization.LocalizedText.localizationKey

| Improve this Doc View Source

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

bucket == GlitchedPolygons.Localization.LocalizedText.localizationBucket

  • Improve this Doc
  • View Source
Back to top Generated by DocFX