Skip to content
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

Causes error: scripted object has a different serialization #10

Open
RobTranquillo opened this issue Jan 30, 2023 · 0 comments
Open

Causes error: scripted object has a different serialization #10

RobTranquillo opened this issue Jan 30, 2023 · 0 comments

Comments

@RobTranquillo
Copy link

Hi,
we have ExtEvents in our project, but it causes a strange error. In WebGL builds, when addressables are used, the error appears in the build:

A scripted object (probably AddressableScene?) has a different serialization layout when loading. (Read 52 bytes but expected 56 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?

As soon as ExtEvents are removed, the error no longer occurs. The script in which the error occurs could be reduced to:

using System;
using UnityEngine;
using UnityEngine.AddressableAssets;

public class AddressableScene : MonoBehaviour
{
    public AssetReference sceneToLoad;
}

Thank you and best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant