Skip to content

Auto spawned Player objects spawning on clients when Spawn With Observers is false (NGO 2.0.0 only). #3076

Open
@ezoray

Description

Description

With the Spawn With Observers flag unticked on the Player prefab Player objects of other clients will spawn on a client, but (correctly) not its own.

NGO 1.11.0 behaves correctly and no Player objects are spawned on clients.

Reproduce Steps

  1. Create Player prefab with Spawn With Observers unticked on the NetworkObject component.
  2. Add prefab to as the Default Player Prefab on the NetworkManager.
  3. Run project as host and have a client connect to it.

Actual Outcome

On client connection the host's Player object spawns on the client, the client's own Player object correctly does not.

Expected Outcome

No Player objects should spawn on the client.

Environment

  • OS: macOS Big Sur
  • Unity Version: Unity 6
  • Netcode Version: NGO 2.0.0

Additional Context

The code used to test is here, it's currently set to NetworkShow the client's own Player so both host and client's Player objects will be spawning.

Activity

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

Metadata

Labels

priority:highThis issue has high priority and we are focusing to resolve itstat:importedStatus - Issue is tracked internally at Unitytype:bugBug Report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions