Skip to content

fix: [Up-Port] handle NetworkManager Awake being overridden - #4244

Open
EmandM wants to merge 6 commits into
develop-3.x.xfrom
fix/upport/derived-networkmanager-awake
Open

EmandM wants to merge 6 commits into
develop-3.x.xfrom
fix/upport/derived-networkmanager-awake

Conversation

@EmandM

@EmandM EmandM commented Nov 5, 2026

Copy link
Copy Markdown
Member

Purpose of this PR

Ensure required NetworkManager methods are protected virtual so the base versions can be called when overridden.

Up-port of #4237

Jira ticket

UUM-159597

Changelog

  • Fixed: Resolves exceptions being thrown when a derived NetworkManager implements their own Awake.

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

n/a

Backports

Backported by #4237

@EmandM
EmandM requested review from a team and NoelStephensUnity as code owners November 5, 2026 22:30

@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

Needs changes

The change makes the lifecycle hooks overridable and adds logger fallbacks, but the teardown refactor introduces a syntax error that prevents the package from compiling.

Reviewed commit bcb9486

🤖 Helpful? 👍/👎

// Note that this gets also called manually by OnSceneUnloaded and OnApplicationQuit
private void OnDestroy()
private void DestroyInternal()
{

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.

P0

The runtime assembly cannot compile because DestroyInternal now has two opening braces but only one closing brace. The original opening brace remains immediately after the newly added brace. Consequently, subsequent member declarations appear inside DestroyInternal, and the file ends with an unmatched brace. Remove the extra opening brace.

🤖 Helpful? 👍/👎

@NoelStephensUnity NoelStephensUnity left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

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.

2 participants