Hi I discover this amazing package but I have some trouble to use it. I imported package v0.11.1 I Configured Localization settings with 'fr' and 'en' language. I added a UI_TEST table with a key 'LANGUAGE' added a component 'Localize string event' I always have this error message Code (CSharp): NullReferenceException: Object reference not set to an instance of an object UnityEngine.Localization.Settings.LocalizedDatabase`2[TTable,TEntry].OnLocaleChanged (UnityEngine.Localization.Locale locale) (at Library/PackageCache/com.unity.localization@0.11.1-preview/Runtime/Settings/Database/LocalizedDatabase.cs:418) UnityEngine.Localization.Settings.LocalizedDatabase`2[TTable,TEntry].ResetState () (at Library/PackageCache/com.unity.localization@0.11.1-preview/Runtime/Settings/Database/LocalizedDatabase.cs:445) UnityEngine.Localization.Settings.LocalizationSettings.ResetState () (at Library/PackageCache/com.unity.localization@0.11.1-preview/Runtime/Settings/LocalizationSettings.cs:491) UnityEngine.Localization.Settings.LocalizationSettings.OnDisable () (at Library/PackageCache/com.unity.localization@0.11.1-preview/Runtime/Settings/LocalizationSettings.cs:180)
Hi, This looks like a bug. I had a go at reproducing it but could not. What version of Unity are you using? It looks familiar to an old bug with SerializeReference. This was fixed some time ago though. It may be worth updating to the latest patch release of the version you are using.
Hi @karl_jones I'm using Unity v2020.1.6f1. I use all this package in my VR project : Another problem, I don't see at runtime the dropdown language list
Do you mean in the player you don't see it? It's an editor only feature. We include some Samples to show how to do it in the player. You can get to them via the package manager window.
It's probably related to the original problem you are having. Please file a bug report so I can take a look at your project and understand what has gone wrong.
Ok I will create a bug report. Last detail, I don't know if there is a relation between "Localization" package and "XR Interaction Toolkit" package but as soon as I add Localization, XRRig component doesn't work at all.
Hi, I'm having the same problem on Unity 2020.1.3f1 I've tracked it down to LocalizedDatabase.cs line 418 In the foreach loop in OnLocaleChanged, TableOperations is null. This shouldn't be possible, since TableOperations is automatically assigned and is read-only. This is a brand new, empty project. I've set up one local (en-gb), one Asset Table and one String Table. [edit] I've also attached the project to a bug report, and to this reply
Can you try updating to 2020.3? This is an old bug with serializereference that should be fixed In the latest version.
I have the same issue on version 2019.4.3f1. I created new project just to test this package and it worked! And as soon as I changed version to 2019.4.3f it stopped working and same error appeared. The version of Unity I initially tested it on was 2019.4.20f1 - on this version it is working. Unfortunally I cant downgrade my main project to that version, it couses lots of errors.