You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: com.unity.netcode.gameobjects/CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ Additional documentation and release notes are available at [Multiplayer Documen
12
12
- Added editor only check prior to entering into play mode if the currently open and active scene is in the build list and if not displays a dialog box asking the user if they would like to automatically add it prior to entering into play mode. (#1828)
13
13
- Added `UnityTransport` implementation and `com.unity.transport` package dependency (#1823)
14
14
- Added `NetworkVariableWritePermission` to `NetworkVariableBase` and implemented `Owner` client writable netvars. (#1762)
15
+
-`UnityTransport` settings can now be set programmatically. (#1845)
15
16
16
17
### Changed
17
18
- Updated `UnityTransport` dependency on `com.unity.transport` to 1.0.0-pre.16. (#1834)
Copy file name to clipboardExpand all lines: com.unity.netcode.gameobjects/Runtime/Transports/UTP/UnityTransport.cs
+65-5Lines changed: 65 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -97,36 +97,96 @@ private enum State
97
97
[SerializeField]
98
98
privateProtocolTypem_ProtocolType;
99
99
100
-
#pragma warning disable CS0414// Assigned-but-not-used (only an issue in WebGL builds)
101
100
[Tooltip("The maximum amount of packets that can be in the internal send/receive queues. Basically this is how many packets can be sent/received in a single update/frame.")]
/// <summary>The maximum amount of packets that can be in the internal send/receive queues.</summary>
105
+
/// <remarks>Basically this is how many packets can be sent/received in a single update/frame.</remarks>
106
+
publicintMaxPacketQueueSize
107
+
{
108
+
get=>m_MaxPacketQueueSize;
109
+
set=>m_MaxPacketQueueSize=value;
110
+
}
105
111
106
112
[Tooltip("The maximum size of a payload that can be handled by the transport.")]
107
113
[SerializeField]
108
114
privateintm_MaxPayloadSize=InitialMaxPayloadSize;
109
115
116
+
/// <summary>The maximum size of a payload that can be handled by the transport.</summary>
117
+
publicintMaxPayloadSize
118
+
{
119
+
get=>m_MaxPayloadSize;
120
+
set=>m_MaxPayloadSize=value;
121
+
}
122
+
110
123
[Tooltip("The maximum size in bytes of the transport send queue. The send queue accumulates messages for batching and stores messages when other internal send queues are full. If you routinely observe an error about too many in-flight packets, try increasing this.")]
[Tooltip("A timeout in milliseconds indicating how long we will wait for a connection event, before we disconnect it. The connection needs to receive data from the connected endpoint within this timeout. Note that with heartbeats enabled, simply not sending any data will not be enough to trigger this timeout (since heartbeats count as connection events).")]
167
+
/// <summary>The maximum amount of connection attempts we will try before disconnecting.</summary>
168
+
publicintMaxConnectAttempts
169
+
{
170
+
get=>m_MaxConnectAttempts;
171
+
set=>m_MaxConnectAttempts=value;
172
+
}
173
+
174
+
[Tooltip("Inactivity timeout after which a connection will be disconnected. The connection needs to receive data from the connected endpoint within this timeout. Note that with heartbeats enabled, simply not sending any data will not be enough to trigger this timeout (since heartbeats count as connection events).")]
0 commit comments