@@ -176,6 +176,10 @@ public class NetworkConfig
176
176
[ Tooltip ( "The amount of time a message should be buffered for without being consumed. If it is not consumed within this time, it will be dropped" ) ]
177
177
public float MessageBufferTimeout = 20f ;
178
178
/// <summary>
179
+ /// Whether or not to enable network logs.
180
+ /// </summary>
181
+ public bool EnableNetworkLogs = true ;
182
+ /// <summary>
179
183
/// Whether or not to enable the ECDHE key exchange to allow for encryption and authentication of messages
180
184
/// </summary>
181
185
[ Tooltip ( "Whether or not to enable the ECDHE key exchange to allow for encryption and authentication of messages" ) ]
@@ -257,14 +261,15 @@ public string ToBase64()
257
261
writer . WriteInt32Packed ( config . LoadSceneTimeOut ) ;
258
262
writer . WriteBool ( config . EnableTimeResync ) ;
259
263
writer . WriteBool ( config . EnsureNetworkedVarLengthSafety ) ;
260
- writer . WriteBits ( ( byte ) config . RpcHashSize , 3 ) ;
264
+ writer . WriteBits ( ( byte ) config . RpcHashSize , 2 ) ;
261
265
writer . WriteBool ( ForceSamePrefabs ) ;
262
266
writer . WriteBool ( UsePrefabSync ) ;
263
267
writer . WriteBool ( EnableSceneManagement ) ;
264
268
writer . WriteBool ( RecycleNetworkIds ) ;
265
269
writer . WriteSinglePacked ( NetworkIdRecycleDelay ) ;
266
270
writer . WriteBool ( EnableNetworkedVar ) ;
267
271
writer . WriteBool ( AllowRuntimeSceneChanges ) ;
272
+ writer . WriteBool ( EnableNetworkLogs ) ;
268
273
stream . PadStream ( ) ;
269
274
270
275
return Convert . ToBase64String ( stream . ToArray ( ) ) ;
@@ -305,14 +310,15 @@ public void FromBase64(string base64)
305
310
config . LoadSceneTimeOut = reader . ReadInt32Packed ( ) ;
306
311
config . EnableTimeResync = reader . ReadBool ( ) ;
307
312
config . EnsureNetworkedVarLengthSafety = reader . ReadBool ( ) ;
308
- config . RpcHashSize = ( HashSize ) reader . ReadBits ( 3 ) ;
313
+ config . RpcHashSize = ( HashSize ) reader . ReadBits ( 2 ) ;
309
314
config . ForceSamePrefabs = reader . ReadBool ( ) ;
310
315
config . UsePrefabSync = reader . ReadBool ( ) ;
311
316
config . EnableSceneManagement = reader . ReadBool ( ) ;
312
317
config . RecycleNetworkIds = reader . ReadBool ( ) ;
313
318
config . NetworkIdRecycleDelay = reader . ReadSinglePacked ( ) ;
314
319
config . EnableNetworkedVar = reader . ReadBool ( ) ;
315
320
config . AllowRuntimeSceneChanges = reader . ReadBool ( ) ;
321
+ config . EnableNetworkLogs = reader . ReadBool ( ) ;
316
322
}
317
323
}
318
324
}
@@ -362,7 +368,7 @@ public ulong GetConfig(bool cache = true)
362
368
writer . WriteBool ( EnsureNetworkedVarLengthSafety ) ;
363
369
writer . WriteBool ( EnableEncryption ) ;
364
370
writer . WriteBool ( SignKeyExchange ) ;
365
- writer . WriteBits ( ( byte ) RpcHashSize , 3 ) ;
371
+ writer . WriteBits ( ( byte ) RpcHashSize , 2 ) ;
366
372
stream . PadStream ( ) ;
367
373
368
374
if ( cache )
0 commit comments