Skip to content

feat: Make NetworkTransport update methods public#3890

Merged
simon-lemay-unity merged 2 commits intodevelop-2.0.0from
feat/expose-transport-updates
Mar 6, 2026
Merged

feat: Make NetworkTransport update methods public#3890
simon-lemay-unity merged 2 commits intodevelop-2.0.0from
feat/expose-transport-updates

Conversation

@simon-lemay-unity
Copy link
Contributor

Purpose of this PR

This PR makes the EarlyUpdate and PostLateUpdate methods of NetworkTransport public. To be able to reuse NGO transports elsewhere, one needs access to those since that might be where most of the work is happening. (It's actually not so much the case for most of the community transports that rely mostly on regular Update to work, but still better to do things right.)

The alternative would be giving internal access to the assembly reusing NGO transports. I don't have any strong opinion regarding which option is preferable. If you prefer internal access, I'll submit a PR that does that instead.

Jira ticket

None (yet).

Changelog

  • Added: NetworkTransport.EarlyUpdate and NetworkTransport.PostLateUpdate are now public. For the vast majority of users, there's really no point in ever calling those methods directly (the NetworkManager handles it). It's only useful if wrapping transports outside of NGO.

Documentation

  • No documentation changes or additions were necessary.

Testing & QA

No need for testing.

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?

Backports

N/A

Copy link
Member

@NoelStephensUnity NoelStephensUnity left a comment

Choose a reason for hiding this comment

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

:godmode:

@simon-lemay-unity simon-lemay-unity merged commit 7567aca into develop-2.0.0 Mar 6, 2026
23 checks passed
@simon-lemay-unity simon-lemay-unity deleted the feat/expose-transport-updates branch March 6, 2026 22:41
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