I tried to add localization support to HUD Text, here is what I done to HUDText.cs:
protected class Entry {
public UILocalize localize;
}
Entry Create() {
ne.localize = ne.label.transform.gameObject.AddComponent<UILocalize>();
}
It works, but sometimes. For example, I added a new Key to localization.csv named "HP", and have content "HitPoint" for, let's say, French
when I add 10 HUD by using .Add function in HUDText, I will see several "Hitpoint", and several "HP". It doesn't work 100%. When I pause the game and check for the UILabel Object, I can still see the UILocalize component inside but with the text "HP", while some of them had text "HitPoint", other part looks the same.
Any idea?