Skip to content

fix: Unified nested NetworkTransforms - #4261

Open
EmandM wants to merge 2 commits into
develop-3.x.xfrom
fix/networktransform-editor-with-nested-transform
Open

EmandM wants to merge 2 commits into
develop-3.x.xfrom
fix/networktransform-editor-with-nested-transform

Conversation

@EmandM

@EmandM EmandM commented Nov 27, 2026

Copy link
Copy Markdown
Member

Purpose of this PR

The NetworkTransformEditor was assuming that the NetworkTransform would always be on the same GameObject as it's NetworkObject. When it wasn't it was causing errors.

Fixes: https://discussions.unity.com/t/unified-netcode-child-networktransform-cannot-be-viewed-or-edited/1742478

Jira ticket

UUM-163137

Changelog

  • Fixed: Errors when using NetworkTransform on a nested object to the NetworkObject

Documentation

  • No documentation changes or additions were necessary.

Testing & QA (How your changes can be verified during release Playtest)

Functional Testing

Manual testing :

  • Manual testing done

Automated tests:

  • Covered by existing automated tests
  • Covered by new automated tests

Does the change require QA team to:

  • Review automated tests?
  • Execute manual tests?
  • Provide feedback about the PR?

If any boxes above are checked the QA team will be automatically added as a PR reviewer.

Up-port

Backports

@EmandM
EmandM requested a review from a team as a code owner November 27, 2026 15:31

@u-pr u-pr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Harness Review

Ship it

The editor now resolves nested transforms through their owning NetworkObject, guards missing owners, and corrects the 3D physics warning. I examined ownership lookup, inspector enablement, and ghost-backed physics handling and found no actionable issues.

Reviewed commit 8705006

🤖 Helpful? 👍/👎

@codecov-github-com

codecov-github-com Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

@@                Coverage Diff                @@
##           develop-3.x.x    #4261      +/-   ##
=================================================
- Coverage          76.72%   76.72%   -0.01%     
=================================================
  Files                159      159              
  Lines              28101    28101              
=================================================
- Hits               21561    21560       -1     
- Misses              6540     6541       +1     
Flag Coverage Δ
NGOv2_project_testproject_ubuntu 75.76% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 1 file with indirect coverage changes

Components Coverage Δ
com.unity.netcode.gameobjects 76.72% <ø> (-0.01%) ⬇️

ℹ️ Need help interpreting these results?

This branch has not been deployed

No deployments
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.

1 participant