Page 1 of 1

unity Localization package problem

Posted: Sat Mar 25, 2023 3:47 am
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

Re: unity Localization package problem

Posted: Sat Mar 25, 2023 11:37 am
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.

Re: unity Localization package problem

Posted: Sun Mar 26, 2023 1:28 am
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

Re: unity Localization package problem

Posted: Sun Mar 26, 2023 2:50 pm
by Tony Li
Great! Thanks for reporting the resolution of the issue.