Skip to content

Client does not own client player prefab #3942

Description

@Magman3000

Description

When the client joins the game, the prefab spawned in response is not owned by that client. This test was run with the build as the host and the editor as the client, but the inverse yields the same results.

Reproduce Steps

  1. Build runs as host
  2. Editor runs as client
  3. PlayerController script on client reaches if(!IsOwner) and runs Debug.Log("Spawned Not Owner: " + IsSpawned); returning Spawned Not Owner: True.

Actual Outcome

The Player Prefab of the client is not owned by the player

Expected Outcome

The Player prefab and connecting scripts being owned by the client

Screenshots

Image

Environment

  • OS: [Windows]
  • Unity Version: [e.g. 6000.2.3f1]
  • Netcode Version: [2.10.0 ]
  • Netcode Commit: [e.g. https://github.com/Unity- Technologies/com.unity.netcode.gameobjects/commit/ba418fa5b600ad9eb61fab0575f12fbecc2c6520]
  • Netcode Topology: [Default Unity Transport, ]

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions