feat: Make NetworkTransport update methods public by simon-lemay-unity · Pull Request #3890 · Unity-Technologies/com.unity.netcode.gameobjects
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.EarlyUpdateandNetworkTransport.PostLateUpdateare now public. For the vast majority of users, there's really no point in ever calling those methods directly (theNetworkManagerhandles 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