Repository navigation
fix: only warn about pre-session hybrid instances - #4245
Open
NoelStephensUnity wants to merge 2 commits into
Open
NoelStephensUnity wants to merge 2 commits into
NoelStephensUnity wants to merge 2 commits into
Conversation
InitGhost checked IsListening before checking whether the instance has a GhostObject, so with developer logging every NetworkObject started before a session logged the not registered warning. The warning now names the instance.
Contributor
There was a problem hiding this comment.
💡 Harness Review
The change limits pre-session registration warnings to hybrid instances and adds the instance name. I reviewed the guard ordering, serialized hybrid state, regression test setup and log capture, and changelog; no actionable issues were found.
Reviewed commit ce5ffd7
🤖 Helpful? 👍/👎
Codecov ReportAttention: Patch coverage is
@@ Coverage Diff @@
## develop-3.x.x #4245 +/- ##
=================================================
- Coverage 76.74% 76.73% -0.02%
=================================================
Files 159 159
Lines 28078 28078
=================================================
- Hits 21549 21546 -3
- Misses 6529 6532 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes
|
NoelStephensUnity
enabled auto-merge (squash)
November 7, 2026 00:18
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose of this PR
With
NetworkManager.LogLevelset toDeveloper, everyNetworkObjectthat started before a session logged "Did not register because there is no session in progress!", hybrid or not. A scene with only plain in-scene placedNetworkObjects spammed it on entering play mode.The warning exists to tell users that a hybrid instance created before a session starts (for example a pooled instance) is not supported and will not be registered.
NetworkObject.InitGhostchecked whether a session was in progress before it checked whether the instance has aGhostObject. It now early-exits for non-hybrid instances and hybrid prefabs first, so only a pre-session hybrid instance logs the warning. The warning also names the instance now.PR Scope:
NetworkObject.InitGhostcheck order.Out of scope:
Jira ticket
N/A
Changelog
NetworkObjectthat started before a session logged a "Did not register because there is no session in progress!" warning whenNetworkManager.LogLevelwasDeveloper. OnlyGhostObjectinstances log it now.Documentation
Testing & QA (How your changes can be verified during release Playtest)
Functional Testing
Manual testing :
Manual testing doneAutomated tests:
Covered by existing automated testsCovered by new automated testsUnifiedHybridPrefabValidationTests.PreSessionInstanceWarnsOnlyWhenHybrid: a non-hybrid instance with developer logging and a hybrid instance with normal logging do not warn; a hybrid instance with developer logging warns once, naming the instance.Does the change require QA team to:
Review automated tests?Execute manual tests?Provide feedback about the PR?Up-port
N/A (develop-3.x.x only; develop-2.0.0 has no hybrid mode)
Backports
N/A