Skip to content

ChangeOwnership gives KeyNotFoundException on the connected client #700

Closed
@goudcode

Description

@goudcode

Describe the bug
ChangeOwnership gives KeyNotFoundException on the connected client

To Reproduce

  1. Make a prefab with a NetworkObject and NetworkTransform component
  2. Instantiate it on the server.
  3. Spawn the NetworkObject component
  4. Change ownership on the NetworkObject to the client
  5. Client gets exception

Expected behavior
Ownership transferred to the client

Screenshots
Spawning code on the server
image
Exception on the client
image

Environment (please complete the following information):

  • OS: Windows 10
  • Unity Version: 2020.3
  • MLAPI Version (package): 0.1.0
  • MLAPI Commit: 3e3aef6

Metadata

Metadata

Assignees

No one assigned

    Labels

    good-first-issueContributions are welcome. Good first issue for newcomers or first time contributors.type:bugBug Report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions