-
-
Notifications
You must be signed in to change notification settings - Fork 200
Description
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.
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.