We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5f0e66 commit 54393f3Copy full SHA for 54393f3
1 file changed
com.unity.multiplayer.mlapi/Editor/PostProcessScene.cs
@@ -11,6 +11,12 @@ public class NetworkScenePostProcess : MonoBehaviour
11
[PostProcessScene(int.MaxValue)]
12
public static void ProcessScene()
13
{
14
+ //If we are in playmode (editor or stand alone) we do not want this to execute
15
+ if(Application.isPlaying)
16
+ {
17
+ return;
18
+ }
19
+
20
List<NetworkedObject> traverseSortedObjects = MonoBehaviour.FindObjectsOfType<NetworkedObject>().ToList();
21
22
traverseSortedObjects.Sort((x, y) =>
@@ -57,4 +63,4 @@ internal static List<int> TraversedSiblingIndex(this NetworkedObject networkedOb
57
63
return paths;
58
64
}
59
65
60
-}
66
+}
0 commit comments