Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: in-scene parenting WorldPositionStays transform synchronization without NetworkTransform [MTT-7856] #2796

Conversation

NoelStephensUnity
Copy link
Collaborator

@NoelStephensUnity NoelStephensUnity commented Dec 19, 2023

This resolves an issue discovered with in-scene placed NetworkObjects where complex nested parent-child hierarchies would not synchronize properly when parenting changed using WorldPositionStays set to true. This also resolves an issue where the initial synchronization was not ordering NetworkObjects with parents before children with complex nested parent-child hierarchies. This update assures the parents will always proceed the children in the initial synchronization serialized NetworkObject order.

MTT-7856

Changelog

  • Fixed: Issue where in-scene placed NetworkObjects with complex nested children NetworkObjects (more than one child in depth) would not synchronize properly if WorldPositionStays was set to true.

Testing and Documentation

  • Includes a modification to the InSceneParentChildHandler integration test helper component.
  • No documentation changes or additions were necessary.

InSceneParentChildHandler was not adding the server side objects to check.
This fixes the issue with World Position Stays being set not working along this:
- The integration scene names not being added with complex nested children
- Parents and children were not being ordered as parent first then child

But now that this is fixed, the world position stays set to false no longer works (whack a mole).
Account for multiple children under any given parent for sorting.
Minor adjustment to how scale is synchronized with in-scene placed NetworkObjects.
@NoelStephensUnity NoelStephensUnity requested a review from a team as a code owner December 19, 2023 01:20
Updating this test
@NoelStephensUnity NoelStephensUnity changed the title fix: in-scene parenting WorldPositionStays transform synchronization without NetworkTransform fix: in-scene parenting WorldPositionStays transform synchronization without NetworkTransform [MTT-7856] Dec 19, 2023
updating the changelog.
removing legacy debug script that was commented out.
Improving the parent sorting update
migrating changelog entry into unreleased region.
@NoelStephensUnity NoelStephensUnity enabled auto-merge (squash) February 1, 2024 17:21
@NoelStephensUnity NoelStephensUnity merged commit d58ffb1 into develop Feb 2, 2024
24 checks passed
@NoelStephensUnity NoelStephensUnity deleted the fix/in-scene-parenting-worldpositionstays-setting-no-nt branch February 2, 2024 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants