-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Failed to load the HMSGameServiceSettings. Please restart Unity Editor." It happens in v2.3.8, worked in v2.3.7 #504
Comments
Thank you for reporting this issue/advice. |
Let me answer to myself. After I copy the |
Hello, @lxwgogogo , We tried the game service and didn't faced any errors like the ones you're getting with the settings. Actually setting's file path is right. It needs to be in Maybe, this error is one shot. Can you tell us which Unity version you are using? Just try this; |
I am using 2022.3.14f1 |
I also encountered this issue once. |
i have same error in android build Unity 2022.3.39f1 A scripted object (script unknown or not yet loaded) has a different serialization layout when loading. (Read 52 bytes but expected 60 bytes) Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts? UnityEngine.Resources:Load(String) HmsPlugin.ScriptableHelper:Load(String, String) HmsPlugin.HMSIAPKitSettings:.ctor() System.Activator:CreateInstance() HmsPlugin.HMSEditorSingleton`1:get_Instance() HmsPlugin.HMSIAPManager:InitControlOfIAP() HuaweiMobileServices.Utils.HMSDispatcher:InvokeAsync(Action) System.Lazy`1:CreateValue() Gameplay.Billing.Factories.Android.Huawei.ControllerFactory:Create(IAuthTokenSource, IGame, BillingEvents, CurrencyConverter) ..... |
@amatveev Can you try other Unity version ? We tried 2022.3.18f1, and we didn't face any errors that you faced. In the meantime, we will try the Unity version that you used. After that, let's we compare results together. |
We upgrade project from 2020.3.41f1 to 2022.3.39f1. summary: A scripted object (script unknown or not yet loaded) has a different serialization layout when loading. (Read 52 bytes but expected 60 bytes) Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts? UnityEngine.Resources:Load(String) HmsPlugin.ScriptableHelper:Load(String, String) HmsPlugin.HMSIAPKitSettings:.ctor() System.Activator:CreateInstance() HmsPlugin.HMSEditorSingleton`1:get_Instance() HmsPlugin.HMSIAPManager:InitControlOfIAP() HuaweiMobileServices.Utils.HMSDispatcher:InvokeAsync(Action) System.Lazy`1:CreateValue() Gameplay.Billing.Factories.Android.Huawei.ControllerFactory:Create(IAuthTokenSource, IGame, BillingEvents, CurrencyConverter) |
@Andronovo-bit @amatveev |
We tested this scenario in Unity 2022.3.40f1, but we did not receive any errors similar to yours.
Could you send the HMSIAPKitSettings.asset file that causes an error in Settings/Resources? @amatveev |
Thank you for using our repository! We're glad we could help solve your issue. If you found our repository helpful, please consider giving us a star ⭐ on GitHub: https://github.com/EvilMindDevs/hms-unity-plugin Your support helps us continue to improve our repository and provide valuable resources for others. |
Describe the bug & problem
The v2.3.7 works well on my phone. But after I upgrade to v2.3.8, it throws error:
I debugged and found the
ScriptableHelper.Load
hasvar asset = Resources.Load<T>(filename);
which the asset isnull
. I wonder if I should copy the Assets/Huawei/Settings/Resources folder to my Assets/Resources folder?The text was updated successfully, but these errors were encountered: