How to batch-convert Actor name fields to “Localization” type after import?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Rafiki
Posts: 9
Joined: Tue Aug 13, 2024 2:01 pm

How to batch-convert Actor name fields to “Localization” type after import?

Post by Rafiki »

Hi Tony,

I’m currently localizing my project and followed the export/import workflow for the database as shown in the official guide. However, after importing back, I noticed that all the Display Name fields for Actors (e.g., Display Name, Display Name en, etc.) are still using the Text field type instead of Localization.
fe0d62ed-6cb6-427b-9c87-746a4704b70a.png
fe0d62ed-6cb6-427b-9c87-746a4704b70a.png (6.66 KiB) Viewed 77 times
I saw in the documentation and examples that the field type needs to be set to Localization for multilingual switching to work, but mine defaulted to Text and doesn’t respond at runtime.

Is there a way to batch-convert these fields to “Localization” type in the editor, or should I take a different approach?

Attached is a screenshot showing the imported result. Thanks for your help!
User avatar
Tony Li
Posts: 23436
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to batch-convert Actor name fields to “Localization” type after import?

Post by Tony Li »

Hi,

It's okay to leave their types set to Text. It won't affect anything at runtime.

Which localization import did you use? The Dialogue Editor window's Localization Export/Import feature, or the Unity Localization Package integration, or i2 Localization, or something else?
Rafiki
Posts: 9
Joined: Tue Aug 13, 2024 2:01 pm

Re: How to batch-convert Actor name fields to “Localization” type after import?

Post by Rafiki »

Tony Li wrote: Tue Jul 15, 2025 4:00 pm Hi,

It's okay to leave their types set to Text. It won't affect anything at runtime.

Which localization import did you use? The Dialogue Editor window's Localization Export/Import feature, or the Unity Localization Package integration, or i2 Localization, or something else?
Hi Tony,

Thanks for the quick reply!

I used the Dialogue Editor window’s Localization Export/Import feature.

The dialogue lines themselves are working fine with localization at runtime, but only the Actor names aren't switching.

I noticed that the dialogue text fields are of type “Localization”, while the Display Name fields remain as Text.
3b20378b-a96e-48de-81ad-beeb2f213a92.png
3b20378b-a96e-48de-81ad-beeb2f213a92.png (12.71 KiB) Viewed 67 times
Thanks again!
User avatar
Tony Li
Posts: 23436
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to batch-convert Actor name fields to “Localization” type after import?

Post by Tony Li »

Hi,

I'll make sure it's corrected in the next update to set the field type of Localization.

However, it should still use the correct language field regardless of whether the type is Text or Localization.

Have you set the current language at runtime?
Rafiki
Posts: 9
Joined: Tue Aug 13, 2024 2:01 pm

Re: How to batch-convert Actor name fields to “Localization” type after import?

Post by Rafiki »

Tony Li wrote: Tue Jul 15, 2025 7:48 pm Hi,

I'll make sure it's corrected in the next update to set the field type of Localization.

However, it should still use the correct language field regardless of whether the type is Text or Localization.

Have you set the current language at runtime?
I looked into it more and realized it was actually my own mistake—sorry about that!

It turns out the actor names were saved in the old save file before I added localization for them, so they were stuck with the original values. After I created a new save, the localized names displayed correctly at runtime.

Appreciate your help, and sorry again for the confusion!
User avatar
Tony Li
Posts: 23436
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to batch-convert Actor name fields to “Localization” type after import?

Post by Tony Li »

Happy to help! I'm glad you found the issue.
Post Reply