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/Runtime/Core/NetworkManager.cs
+15-13
Original file line number
Diff line number
Diff line change
@@ -480,15 +480,19 @@ public struct ConnectionApprovalRequest
480
480
/// <summary>
481
481
/// This callback is invoked once the local server is stopped.
482
482
/// </summary>
483
-
/// <remarks>The bool parameter will be set to true when stopping a host instance and false when stopping a server instance.</remarks>
484
-
/// <param name="arg1">The first parameter of this event will be set to <see cref="true"/> when stopping a host instance and <see cref="false"/> when stopping a server instance.</param>
483
+
/// <remarks>
484
+
/// The bool parameter will be set to true when stopping a host instance and false when stopping a server instance.
485
+
/// The first parameter of this event will be set to <see cref="true"/> when stopping a host instance and <see cref="false"/> when stopping a server instance.
486
+
/// </remarks>
485
487
publiceventAction<bool>OnServerStopped=null;
486
488
487
489
/// <summary>
488
490
/// The callback to invoke once the local client stops.
489
491
/// </summary>
490
-
/// <remarks>The bool parameter will be set to true when stopping a host client and false when stopping a standard client instance.</remarks>
491
-
/// <param name="arg1">The first parameter of this event will be set to <see cref="true"/> when stopping the host client and <see cref="false"/> when stopping a standard client instance.</param>
492
+
/// <remarks>
493
+
/// The bool parameter will be set to true when stopping a host client and false when stopping a standard client instance.
494
+
/// The first parameter of this event will be set to <see cref="true"/> when stopping the host client and <see cref="false"/> when stopping a standard client instance.
/// and thus should be large enough to ensure it can hold each message type.
777
781
/// This value defaults to 1296.
778
782
/// </summary>
779
-
/// <param name="size"></param>
780
783
publicintMaximumTransmissionUnitSize
781
784
{
782
785
set=>MessageManager.NonFragmentedMessageMaxSize=value&~7;// Round down to nearest word aligned size
@@ -788,8 +791,8 @@ public int MaximumTransmissionUnitSize
788
791
/// This determines the maximum size of a message batch that can be sent to that client.
789
792
/// If not set for any given client, <see cref="MaximumTransmissionUnitSize"/> will be used instead.
790
793
/// </summary>
791
-
/// <param name="clientId"></param>
792
-
/// <param name="size"></param>
794
+
/// <param name="clientId">The unique identifier of the client to set the MTU for.</param>
795
+
/// <param name="size">The maximum transmission unit size in bytes for this specific client.</param>
793
796
publicvoidSetPeerMTU(ulongclientId,intsize)
794
797
{
795
798
MessageManager.PeerMTUSizes[clientId]=size;
@@ -799,8 +802,8 @@ public void SetPeerMTU(ulong clientId, int size)
799
802
/// Queries the current MTU size for a client.
800
803
/// If no MTU has been set for that client, will return <see cref="MaximumTransmissionUnitSize"/>
801
804
/// </summary>
802
-
/// <param name="clientId"></param>
803
-
/// <returns></returns>
805
+
/// <param name="clientId">The unique identifier of the client to query.</param>
806
+
/// <returns>The MTU size in bytes for the specified client. If no MTU has been set for that client, returns <see cref="MaximumTransmissionUnitSize"/>.</returns>
@@ -815,7 +818,6 @@ public int GetPeerMTU(ulong clientId)
815
818
/// Sets the maximum size of a message (or message batch) passed through the transport with the ReliableFragmented delivery.
816
819
/// Warning: setting this value too low may result in the SDK becoming non-functional with projects that have a large number of NetworkBehaviours or NetworkVariables, as the SDK relies on the transport's ability to fragment some messages when they grow beyond the MTU size.
0 commit comments