private void Start() { TMP_InputField input = GetComponent <TMP_InputField>(); input.text = GameUILocale.ResolveString(input.text); Destroy(this); }
private void Start() { TextMeshProUGUI text = GetComponent <TextMeshProUGUI>(); string currentId = text.text; text.text = GameUILocale.ResolveString(text.text); //The text was not found if (text.text == currentId) { Logger.Warn("The localization key '{@Key}' was not found in the GameUI locale! ({@ObjectName})", currentId, gameObject.name); } Destroy(this); }