| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
- Adjusted the `InScenePlaced` property to internally set or publicly get the serialized `m_InScenePlaced` field. - `NetworkObject` now implements `ISerializationCallbackReceiver` to assure `m_InScenePlaced` is always properly set for in-scene placed objects. - Removed legacy define for UNITY_2021_2_OR_NEWER since v2.x.x+ is only for Unity v6.
Sorry, something went wrong.
- `ISerializationCallbackReceiver` implementation as that does not accomplish what we need. - Setting InScenePlaced within OnValidate instead.
Fixing several issues with NetworkObjectSceneMigrationTests. Fixing several formatting issues.
Issue where distributed authority would throw an exception during scene migration due to the fact that we would throw an exception if the 1st scene in the scene migration table didn't contain the client that has authority over the NetworkObject that migrated into a new scene. Now we count how many entries were written and if that count is zero upon parsing known loaded scenes then it throws an exception. Reverting the exclusion of DDOL synchronization (that was a red herring).
Removing the ValidateSceneOnAllClients portion as that doesn't assure that all clients have loaded the scene and fully synchronized the scene which could lead to edge case issues during this test.
| Back | FazBrowse Home | New Git URL |
Purpose of this PR
This fixes an edge case scenario where non-spawned NetworkObjects migrated into the DDOL during awake would not get spawned upon starting a session as a server, host, or session owner.
While getting some of the validation tests for this working, ran into the issue with MTT-15430 which required fixing that issue in order to get some of the newer and adjusted tests to work. So, this PR includes the fix for this too.
Jira ticket
Extension fixes for #4073
Also fixes MTT-15430
Changelog
Fixed: Issue where scene migration in a distributed authority session would throw an exception on clients migrating their owned NetworkObject instances to a different scene.
Fixed: Issue where migrating a dynamically spawned or in-scene placed NetworkObject into a different scene during awake could result in that spawned instance to not be synchronized.
Documentation
Testing & QA (How your changes can be verified during release Playtest)
Functional Testing
Manual testing :
Automated tests:
Does the change require QA team to:
If any boxes above are checked the QA team will be automatically added as a PR reviewer.
Backports
Does not require a backport.