Skip to content

Causes error: scripted object has a different serialization #10

@RobTranquillo

Description

@RobTranquillo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions