Skip to content

NetworkObject serialization issue #996

@belplaton

Description

@belplaton

Unity 2022.3.15f1
FishNet 4.6.18R Pro

Description:

After every time I edit scripts and then run the game scene, I get an error saying I need to “Reserialize NetworkObjects.” I do it (which is already inconvenient, because I have to do it constantly).

Then, sometimes, even after running “Reserialize NetworkObjects,” I start the scene and nothing is fixed. It complains about the exact same error again. I run “Reserialize NetworkObjects” again and again, and nothing changes.

The only thing that helps is fully reverting all prefab changes in the current commit. That’s a serious problem, because it makes it impossible to work with prefabs normally in the project — this serialization system completely breaks our workflows.

Image Image Image

Replication:

You need to have some prefabs with NetworkObjects. Then edit scripts (or basically anything else). The issue appears spontaneously / at random.

Expectation:

Serialization and reserialization should not modify prefabs. Data such as _initializedTimestamp and PrefabId should be stored in PrefabObjects in the editor (or in some other centralized place), not inside NetworkObject components.

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