using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; [RequireComponent(typeof(TextMeshProUGUI))] public class TextLocaliserUI : MonoBehaviour { TextMeshProUGUI textField; public string key; // Start is called before the first frame update void Start() { textField = GetComponent(); string value = LocalisationSystem.GetLocalisedValue(key); textField.text = value; } }