Skip to content

Commit 9b3a07d

Browse files
authored
docs: xmldoc for DisconnectReason (#2300)
1 parent bca25b9 commit 9b3a07d

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

com.unity.netcode.gameobjects/Editor/NetworkBehaviourEditor.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
namespace Unity.Netcode.Editor
99
{
10+
/// <summary>
11+
/// The <see cref="CustomEditor"/> for <see cref="NetworkBehaviour"/>
12+
/// </summary>
1013
[CustomEditor(typeof(NetworkBehaviour), true)]
1114
[CanEditMultipleObjects]
1215
public class NetworkBehaviourEditor : UnityEditor.Editor

com.unity.netcode.gameobjects/Runtime/Core/NetworkManager.cs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ public NetworkPrefabHandler PrefabHandler
8686
private bool m_ShuttingDown;
8787
private bool m_StopProcessingMessages;
8888

89-
// <summary>
90-
// When disconnected from the server, the server may send a reason. If a reason was sent, this property will
91-
// tell client code what the reason was. It should be queried after the OnClientDisconnectCallback is called
92-
// </summary>
89+
/// <summary>
90+
/// When disconnected from the server, the server may send a reason. If a reason was sent, this property will
91+
/// tell client code what the reason was. It should be queried after the OnClientDisconnectCallback is called
92+
/// </summary>
9393
public string DisconnectReason { get; internal set; }
9494

9595
private class NetworkManagerHooks : INetworkHooks
@@ -450,9 +450,10 @@ public class ConnectionApprovalResponse
450450
/// </summary>
451451
public bool Pending;
452452

453-
// <summary>
454-
// Optional reason. If Approved is false, this reason will be sent to the client so they know why they
455-
// were not approved.
453+
/// <summary>
454+
/// Optional reason. If Approved is false, this reason will be sent to the client so they know why they
455+
/// were not approved.
456+
/// </summary>
456457
public string Reason;
457458
}
458459

0 commit comments

Comments
 (0)