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: MLAPI/Data/NetworkConfig.cs
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,11 @@ public class NetworkConfig
84
84
/// </summary>
85
85
publicboolEnableTimeResync=false;
86
86
/// <summary>
87
+
/// Whether or not to enable the NetworkedVar system. This system runs in the Update loop and will degrade performance, but it can be a huge convenience.
88
+
/// Only turn it off if you have no need for the NetworkedVar system.
89
+
/// </summary>
90
+
publicboolEnableNetworkedVar=true;
91
+
/// <summary>
87
92
/// Wheter or not the MLAPI should check for differences in the prefabs at connection.
88
93
/// If you dynamically add prefabs at runtime, turn this OFF
89
94
/// </summary>
@@ -184,6 +189,7 @@ public string ToBase64()
184
189
writer.WriteBits((byte)config.RpcHashSize,3);
185
190
writer.WriteBool(ForceSamePrefabs);
186
191
writer.WriteBool(UsePrefabSync);
192
+
writer.WriteBool(EnableNetworkedVar);
187
193
stream.PadStream();
188
194
189
195
returnConvert.ToBase64String(stream.ToArray());
@@ -227,6 +233,7 @@ public void FromBase64(string base64)
227
233
config.RpcHashSize=(HashSize)reader.ReadBits(3);
228
234
config.ForceSamePrefabs=reader.ReadBool();
229
235
config.UsePrefabSync=reader.ReadBool();
236
+
config.EnableNetworkedVar=reader.ReadBool();
230
237
}
231
238
}
232
239
}
@@ -266,6 +273,7 @@ public ulong GetConfig(bool cache = true)
0 commit comments