unity Localization package problem

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
robster21
Posts: 38
Joined: Tue Aug 23, 2022 9:02 am

unity Localization package problem

Post by robster21 »

I'm using Unity's Localization package with DS.
https://docs.unity3d.com/Packages/com.u ... index.html


I want to change the DS's language at runtime(when I playing the game),
So I made a script for unity button event like that:

Code: Select all

using UnityEngine.Localization.Settings;

public Locale locale;
public class ChangeLanguage : MonoBehaviour
{
 public void ChangeLocale()
    {
        LocalizationSettings.SelectedLocale = locale;
    } // It works when you click the "change language" button.
}
    

but It doesn't work at runtime.
And also, I can't change the Actor's name.
How can I make it?

(+)
I referred to this document :
https://www.pixelcrushers.com/dialogue_ ... ionPackage
User avatar
Tony Li
Posts: 22133
Joined: Thu Jul 18, 2013 1:27 pm

Re: unity Localization package problem

Post by Tony Li »

Hi,

Did you add the Dialogue System Localization Package Bridge component to the Dialogue Manager, and assign your localization asset(s) to it?

Are there any errors or warnings in the Console window?

I'm going to be traveling back from GDC today, so it may take longer for me to respond today.
robster21
Posts: 38
Joined: Tue Aug 23, 2022 9:02 am

Re: unity Localization package problem

Post by robster21 »

Ah, I'm sorry, I have solved this problem. I forgot I was using an old version of the DS.
So I updated the Localization package to DS_LocalizationPackageSupport_2022-11-11, and it started working! :D :D
User avatar
Tony Li
Posts: 22133
Joined: Thu Jul 18, 2013 1:27 pm

Re: unity Localization package problem

Post by Tony Li »

Great! Thanks for reporting the resolution of the issue.
Post Reply