Skip to content

Pre-existing NetworkObject are not spawned after NetworkManager.StartHost() #4072

Description

@acavailhez

Description

Hi!
With version 2.13.0, NetworkObject present in the scene before NetworkManager.StartHost() are never spawned.
OnNetworkSpawn() is never called on the object, and all properties like IsSpawned, IsServer, etc are never instantiated.

On version 2.12.0, OnNetworkSpawn() is called correctly.

Reproduce Steps

  1. Add a GameObject with a NetworkObject
  2. A a NetworkManager and start a local server
  3. NetworkObject is never spawned

Actual Outcome

OnNetworkSpawn() is never called on pre-existing NetworkObjects

Expected Outcome

OnNetworkSpawn() is called on pre-existing NetworkObjects

Environment

  • OS: any
  • Unity Version: 6000.3.11f1
  • Netcode Version: 2.13.0
  • Netcode Topology: Distributed Authority

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions