Skip to content

Commit

Permalink
fix: no longer true. spawnableobjects populated by FindObjectsOfTypeA…
Browse files Browse the repository at this point in the history
  • Loading branch information
uweeby committed Feb 19, 2021
1 parent e6b9354 commit 5692709
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Assets/Mirage/Editor/NetworkScenePostProcess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ static void PrepareSceneObject(NetworkIdentity identity)
// set scene hash
identity.SetSceneIdSceneHashPartInternal();

// disable it
// note: NetworkIdentity.OnDisable adds itself to the
// spawnableObjects dictionary (only if sceneId != 0)
identity.gameObject.SetActive(false);

// safety check for prefabs with more than one NetworkIdentity
Expand Down

0 comments on commit 5692709

Please sign in to comment.