Skip to content

Commit 2793ec8

Browse files
committed
NetworkConfig corrections
1 parent 6843336 commit 2793ec8

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

com.unity.netcode.gameobjects/Runtime/Configuration/NetworkConfig.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ public class NetworkConfig
3939
[Tooltip("When set, NetworkManager will automatically create and spawn the assigned player prefab. This can be overridden by adding it to the NetworkPrefabs list and selecting override.")]
4040
public GameObject PlayerPrefab;
4141

42+
/// <summary>
43+
/// The collection of network prefabs that can be spawned across the network
44+
/// </summary>
4245
[SerializeField]
4346
public NetworkPrefabs Prefabs = new NetworkPrefabs();
4447

@@ -159,12 +162,21 @@ public class NetworkConfig
159162
/// </summary>
160163
public const int RttWindowSize = 64; // number of slots to use for RTT computations (max number of in-flight packets)
161164

165+
/// <summary>
166+
/// Determines whether to use the client-server or distributed authority network topology
167+
/// </summary>
162168
[Tooltip("Determines whether to use the client-server or distributed authority network topology.")]
163169
public NetworkTopologyTypes NetworkTopology;
164170

171+
/// <summary>
172+
/// Internal flag for Cloud Multiplayer Build service integration
173+
/// </summary>
165174
[HideInInspector]
166175
public bool UseCMBService;
167176

177+
/// <summary>
178+
/// When enabled (default), the player prefab will automatically be spawned client-side upon the client being approved and synchronized
179+
/// </summary>
168180
[Tooltip("When enabled (default), the player prefab will automatically be spawned (client-side) upon the client being approved and synchronized.")]
169181
public bool AutoSpawnPlayerPrefabClientSide = true;
170182

@@ -205,7 +217,7 @@ internal NetworkConfig Copy()
205217
return networkConfig;
206218
}
207219

208-
#endif
220+
#endif
209221

210222

211223
#if MULTIPLAYER_TOOLS

pvpExceptions.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@
1717
"Unity.Netcode.Components.AnticipatedNetworkTransform.TransformState: undocumented",
1818
"Unity.Netcode.Components.AnticipatedNetworkTransform.TransformState: Position: undocumented",
1919
"Unity.Netcode.Components.AnticipatedNetworkTransform.TransformState: Rotation: undocumented",
20-
"Unity.Netcode.Components.AnticipatedNetworkTransform.TransformState: Scale: undocumented",
21-
"Unity.Netcode.NetworkConfig: Prefabs: undocumented",
22-
"Unity.Netcode.NetworkConfig: NetworkTopology: undocumented",
23-
"Unity.Netcode.NetworkConfig: UseCMBService: undocumented",
24-
"Unity.Netcode.NetworkConfig: AutoSpawnPlayerPrefabClientSide: undocumented",
20+
"Unity.Netcode.Components.AnticipatedNetworkTransform.TransformState: Scale: undocumented",
2521
"Unity.Netcode.ConnectionEventData: EventType: undocumented",
2622
"Unity.Netcode.RpcException: undocumented",
2723
"Unity.Netcode.RpcException: .ctor(string): undocumented",

0 commit comments

Comments
 (0)