Skip to content

Commit 7567aca

Browse files
feat: Make NetworkTransport update methods public (#3890)
1 parent 26a1429 commit 7567aca

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

com.unity.netcode.gameobjects/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Additional documentation and release notes are available at [Multiplayer Documen
1010

1111
### Added
1212

13+
- `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. (#3890)
1314

1415
### Changed
1516

com.unity.netcode.gameobjects/Runtime/Transports/NetworkTransport.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ protected virtual void OnEarlyUpdate()
126126
/// <summary>
127127
/// Invoked by NetworkManager at the beginning of its EarlyUpdate
128128
/// </summary>
129-
internal void EarlyUpdate()
129+
public void EarlyUpdate()
130130
{
131131
OnEarlyUpdate();
132132
}
@@ -146,7 +146,7 @@ protected virtual void OnPostLateUpdate()
146146
/// <summary>
147147
/// Invoked by NetworkManager towards the end of the PostLateUpdate
148148
/// </summary>
149-
internal void PostLateUpdate()
149+
public void PostLateUpdate()
150150
{
151151
OnPostLateUpdate();
152152
}

com.unity.netcode.gameobjects/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "com.unity.netcode.gameobjects",
33
"displayName": "Netcode for GameObjects",
44
"description": "Netcode for GameObjects is a high-level netcode SDK that provides networking capabilities to GameObject/MonoBehaviour workflows within Unity and sits on top of underlying transport layer.",
5-
"version": "2.10.1",
5+
"version": "2.11.0",
66
"unity": "6000.0",
77
"dependencies": {
88
"com.unity.nuget.mono-cecil": "1.11.4",

0 commit comments

Comments
 (0)