This question was
closed Aug 27, 2021 at 01:53 PM by
Mewiacap for the following reason:
The question is answered, right answer was accepted
Question by
Mewiacap · Aug 27, 2021 at 07:33 AM ·
errorbugbugsbug reportlocalization
Issues with localization: 1) OperationException : SelectedLocale is null, 2) System.Exception: SelectedLocale is null | Unity 2020.3.0f1
Hi, I have the two issues with Unity 2020.3.0f1. I will try to send a bug report, but it will take a very long time.
1)
OperationException : SelectedLocale is null
UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1/<>c__DisplayClass57_0<UnityEngine.Localization.Settings.LocalizationSettings>:<add_CompletedTypeless>b__0 (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.Localization.Settings.LocalizationSettings>)
DelegateList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.Localization.Settings.LocalizationSettings>>:Invoke (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.Localization.Settings.LocalizationSettings>) (at Library/PackageCache/com.unity.addressables@1.18.15/Runtime/ResourceManager/Util/DelegateList.cs:69)
UnityEngine.Localization.InitializationOperation:<LoadLocales>b__10_0 (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.Localization.Locale>)
DelegateList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.Localization.Locale>>:Invoke (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.Localization.Locale>) (at Library/PackageCache/com.unity.addressables@1.18.15/Runtime/ResourceManager/Util/DelegateList.cs:69)
UnityEngine.ResourceManagement.ChainOperationTypelessDepedency`1<UnityEngine.Localization.Locale>:OnWrappedCompleted (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.Localization.Locale>)
DelegateList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.Localization.Locale>>:Invoke (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.Localization.Locale>) (at Library/PackageCache/com.unity.addressables@1.18.15/Runtime/ResourceManager/Util/DelegateList.cs:69)
UnityEngine.Localization.Components.LocalizeStringEvent:OnEnable () (at Library/PackageCache/com.unity.localization@1.0.0-pre.10/Runtime/Component Localizers/LocalizeStringEvent.cs:81)
2)
System.Exception: SelectedLocale is null
UnityEngine.Localization.Components.LocalizeStringEvent:OnEnable () (at Library/PackageCache/com.unity.localization@1.0.0-pre.10/Runtime/Component Localizers/LocalizeStringEvent.cs:81)
These issues are repeated many times:
screenshot-1.jpg
(64.0 kB)
Comment
I send a bug report with name "OperationException : SelectedLocale is null | Unity 2020.3.0f1".
Best Answer
Answer by Mewiacap · Aug 27, 2021 at 01:53 PM
I fixed these errors. Select any locale for "Active Locale" in Window -> Asset Management -> Localization Scene Controls.
Unity 2020.3.0f1 | Localization 1.0.0-pre.10
I had the same issue. Thank you for sharing the solution.