Requesting serialization on an object and immediately disabling it prevents the serialization request.
Setup:
  • Manually synched object with several synched variables
  • Remote player is owner
  • Remove player leaves instance
  • Master takes ownership
  • Master resets various variables and requests serialization
  • Master disables
    GameObject
Expected:
Serialization succeeds (This is what happened before the OSC update)
Actual:
OnPreSerialization
and
OnPostSerialization
are
not
called, the variables are not reset.
-------------
Since the OSC update, there seems to be a new issue when requesting serialization.
I have only seen this bug occur in CyanLaser's object pool prefab. It is caused by disabling an object shortly after requesting serialization.
If I don't disable the
GameObject
, serilization succeeds (but the script loses functionality)