Search Unity

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:
    62
    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.