We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c71edf9 commit 79fbed1Copy full SHA for 79fbed1
com.unity.multiplayer.mlapi/Editor/PostProcessScene.cs
@@ -11,7 +11,9 @@ public class NetworkScenePostProcess : MonoBehaviour
11
[PostProcessScene(int.MaxValue)]
12
public static void ProcessScene()
13
{
14
- var traverseSortedObjects = FindObjectsOfType<NetworkObject>().ToList();
+ // find all scene objects that have not been spawned yet
15
+ // TODO: long term, replace the means of finding candidate objects to repace FindObjectsOfType
16
+ var traverseSortedObjects = FindObjectsOfType<NetworkObject>().Where(x => x.IsSceneObject == null).ToList();
17
18
traverseSortedObjects.Sort((x, y) =>
19
0 commit comments