Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    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:
    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.