Hi!
Can't undestand why LocalizedName field never return localized name.
I have "Use Display Name" ticked and added
"Display Name EN" and "Display Name EN" as Localization fields.
Do I have to do anything else?
Actor.LocalizedName
Re: Actor.LocalizedName
Hi,
Actor.localizedName returns the localized version of the "Name" field. In other words, it will only look for "Name EN".
If you want to get the localized version of the Dispay Name field, I recommend using CharacterInfo.GetLocalizedDisplayNameInDatabase(actor.Name). This will try the following, in order (assuming the language is set to EN):
Also, make sure the current language is set to EN. (See How To Switch Languages)
Actor.localizedName returns the localized version of the "Name" field. In other words, it will only look for "Name EN".
If you want to get the localized version of the Dispay Name field, I recommend using CharacterInfo.GetLocalizedDisplayNameInDatabase(actor.Name). This will try the following, in order (assuming the language is set to EN):
- Display Name EN
- Display Name
- Name EN
- Name
Also, make sure the current language is set to EN. (See How To Switch Languages)
Re: Actor.LocalizedName
It works.
thank you, always good support.
thank you, always good support.