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
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -119,7 +119,7 @@ public class NetworkConfig
119
119
/// </summary>
120
120
publicboolEnableSceneSwitching=true;
121
121
/// <summary>
122
-
/// If your logic uses the NetwokrTime, this should probably be turned off. If however it's needed to maximize accuracy, this is recommended to be turned on
122
+
/// If your logic uses the NetworkedTime, this should probably be turned off. If however it's needed to maximize accuracy, this is recommended to be turned on
/// The amount of seconds to wait on all clients to load requested scene before the SwitchSceneProgress onComplete callback, that waits for all clients to complete loading, is called anyway.
141
+
/// </summary>
142
+
publicintLoadSceneTimeOut=120;
143
+
/// <summary>
144
+
/// Wheter or not to enable the ECDHE key exchange to allow for encryption and authentication of messages
Copy file name to clipboardExpand all lines: MLAPI/MonoBehaviours/Core/NetworkedObject.cs
+18-19Lines changed: 18 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,15 @@ internal set
87
87
/// Gets if the object has yet been spawned across the network
88
88
/// </summary>
89
89
publicboolisSpawned{get;internalset;}
90
-
internalbool?sceneObject=null;
90
+
internalbool?destroyWithScene=null;
91
+
92
+
/// <summary>
93
+
/// When enabled this gameobject will not be spawned on the client until the scene it was originally spawned inside at the server is fully loaded on the client.
94
+
/// </summary>
95
+
[Tooltip("When enabled this gameobject will not be spawned on the client until the scene it was originally spawned inside at the server is fully loaded on the client.")]
96
+
publicboolSceneDelayedSpawn=false;
97
+
98
+
internaluintsceneSpawnedInIndex=0;
91
99
92
100
privatevoidOnDestroy()
93
101
{
@@ -98,9 +106,11 @@ private void OnDestroy()
98
106
/// <summary>
99
107
/// Spawns this GameObject across the network. Can only be called from the Server
100
108
/// </summary>
101
-
publicvoidSpawn(StreamspawnPayload=null)
109
+
/// <param name="spawnPayload">The writer containing the spawn payload</param>
110
+
/// <param name="destroyWithScene">Should the object be destroyd when the scene is changed</param>
0 commit comments