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