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/Configuration/NetworkConfig.cs
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -126,6 +126,13 @@ public class NetworkConfig
126
126
[Tooltip("Ensures that NetworkedVars can be read even if a client accidental writes where its not allowed to. This will cost some CPU time and bandwidth")]
127
127
publicboolEnsureNetworkedVarLengthSafety=false;
128
128
/// <summary>
129
+
/// Enables scene management. This will allow network scene switches and automatic scene diff corrections upon connect.
130
+
/// SoftSynced scene objects wont work with this disabled. That means that disabling SceneManagement also enables PrefabSync.
131
+
/// </summary>
132
+
[Tooltip("Enables scene management. This will allow network scene switches and automatic scene diff corrections upon connect.\n"+
133
+
"SoftSynced scene objects wont work with this disabled. That means that disabling SceneManagement also enables PrefabSync.")]
134
+
publicboolEnableSceneManagement=true;
135
+
/// <summary>
129
136
/// Whether or not the MLAPI should check for differences in the prefabs at connection.
130
137
/// If you dynamically add prefabs at runtime, turn this OFF
131
138
/// </summary>
@@ -243,6 +250,7 @@ public string ToBase64()
243
250
writer.WriteBits((byte)config.RpcHashSize,3);
244
251
writer.WriteBool(ForceSamePrefabs);
245
252
writer.WriteBool(UsePrefabSync);
253
+
writer.WriteBool(EnableSceneManagement);
246
254
writer.WriteBool(RecycleNetworkIds);
247
255
writer.WriteSinglePacked(NetworkIdRecycleDelay);
248
256
writer.WriteBool(EnableNetworkedVar);
@@ -290,6 +298,7 @@ public void FromBase64(string base64)
0 commit comments