Hi!
When I play some scene with LocalizeString component it shows me some messages/warnings/errors.
Localization Settings - On demand:
Message:
Locale ‘en-US’ is not supported, however the parent locale ‘en’ is.
UnityEngine.ResourceManagement.DelayedActionManager:LateUpdate()
Warning:
SendMessage cannot be called during Awake, CheckConsistency, or OnValidate
UnityEngine.Localization.Components.LocalizationBehaviour:OnValidate()
Error:
InvalidKeyException: Exception of type ‘UnityEngine.AddressableAssets.InvalidKeyException’ was thrown., Key=en - GUI
UnityEngine.ResourceManagement.DelayedActionManager:LateUpdate()
Failed to load asset:
UnityEngine.ResourceManagement.DelayedActionManager:LateUpdate()
Localization Settings - Preload:
Message:
Locale ‘en-US’ is not supported, however the parent locale ‘en’ is.
UnityEngine.ResourceManagement.DelayedActionManager:LateUpdate()
Localization: Preloading Asset Tables(0.12)
UnityEngine.ResourceManagement.DelayedActionManager:LateUpdate()
Localization: Preloading String Tables(0.12)
UnityEngine.ResourceManagement.DelayedActionManager:LateUpdate()
Warning:
SendMessage cannot be called during Awake, CheckConsistency, or OnValidate
UnityEngine.Localization.Components.LocalizationBehaviour:OnValidate()
Error:
InvalidKeyException: Exception of type ‘UnityEngine.AddressableAssets.InvalidKeyException’ was thrown., Key=System.Object[ ]
UnityEngine.ResourceManagement.DelayedActionManager:LateUpdate()
Failed to load asset:
UnityEngine.ResourceManagement.DelayedActionManager:LateUpdate()
Exception thrown in DynamicInvoke: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.NullReferenceException: Object reference not set to an instance of an object
at UnityEngine.Localization.AssetDatabasePreloadOperation.PreloadTablesCompleted (UnityEngine.ResourceManagement.IAsyncOperation1[T] asyncOperation) [0x00011] in /Users/Games/Library/PackageCache/com.unity.localization@0.2.2-preview/Runtime/Operations/AssetDatabasePreloadOperation.cs:44 at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[ ],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[ ] parameters, System.Globalization.CultureInfo culture) [0x00032] in <ac823e2bb42b41bda67924a45a0173c3>:0 --- End of inner exception stack trace --- at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[ ] parameters, System.Globalization.CultureInfo culture) [0x00048] in <ac823e2bb42b41bda67924a45a0173c3>:0 at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[ ] parameters) [0x00000] in <ac823e2bb42b41bda67924a45a0173c3>:0 at System.Delegate.DynamicInvokeImpl (System.Object[ ] args) [0x000e7] in <ac823e2bb42b41bda67924a45a0173c3>:0 at System.MulticastDelegate.DynamicInvokeImpl (System.Object[ ] args) [0x00008] in <ac823e2bb42b41bda67924a45a0173c3>:0 at System.Delegate.DynamicInvoke (System.Object[ ] args) [0x00000] in <ac823e2bb42b41bda67924a45a0173c3>:0 at UnityEngine.ResourceManagement.DelayedActionManager+DelegateInfo.Invoke () [0x00002] in /Users/Games/Library/PackageCache/com.unity.resourcemanager@2.4.2-preview/Runtime/Util/DelayedActionManager.cs:48 5 (target=UnityEngine.Localization.AssetDatabasePreloadOperation result = , status = None, valid = True, canRelease = False) AssetDatabasePreloadOperation.PreloadTablesCompleted(UnityEngine.ResourceManagement.CompletedOperation
1[System.Collections.Generic.IList`1[UnityEngine.Localization.LocalizedAssetTable]] result = , status = Failed, valid = True, canRelease = False) @3.568834
UnityEngine.ResourceManagement.DelayedActionManager:LateUpdate()
Default Locale Selector: English (en).
Thank you!