Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug NetworkManager.Singleton.ConnectedClients[client].OwnedObjects; returns empty (size 0) list

Discussion in 'Multiplayer' started by maxkcy, Apr 28, 2023.

  1. maxkcy

    maxkcy

    Joined:
    Oct 11, 2021
    Posts:
    40
    NetworkManager.Singleton.ConnectedClients[client].OwnedObjects; returns empty (size 0) list on server in the OnClientDisconnectedCallback.

    see this for my problem and my hacky fix.
    Making it inconvient to quickly retrive objects. This means that I will need to get multiple lists for multiple items instead of traversing through one list and checking type.