Skip to content

Commit d97d968

Browse files
authored
fix: Update API docs for MaxPayloadSize (#2877)
* Update API docs for MaxPayloadSize * Update to API remark following review
1 parent d90292d commit d97d968

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

com.unity.netcode.gameobjects/Runtime/Transports/UTP/UnityTransport.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,12 @@ public int MaxPacketQueueSize
202202
set => m_MaxPacketQueueSize = value;
203203
}
204204

205-
[Tooltip("The maximum size of an unreliable payload that can be handled by the transport.")]
205+
[Tooltip("The maximum size of an unreliable payload that can be handled by the transport. The memory for MaxPayloadSize is allocated once per connection and is released when the connection is closed.")]
206206
[SerializeField]
207207
private int m_MaxPayloadSize = InitialMaxPayloadSize;
208208

209209
/// <summary>The maximum size of an unreliable payload that can be handled by the transport.</summary>
210+
/// <remarks>The memory for MaxPayloadSize is allocated once per connection and is released when the connection is closed.</remarks>
210211
public int MaxPayloadSize
211212
{
212213
get => m_MaxPayloadSize;

0 commit comments

Comments
 (0)