Skip to content

Clearing NetworkList Offline #2969

@KreutzerCode

Description

@KreutzerCode

Setup:
Unity 2023.2.7f1
Netcode for Gameobjects v1.8.1

Question:
Hi, I have a simple but confusing question about NetworkList variables.
When I was testing the state of my clients when they connect and disconnect a game, I noticed something strange regarading the data of the NetworkList.

Steps:

  1. the client connects to a game
  2. the host of that game writes some data to the network list
  3. the client disconnects from the game (now offline)

Now the client can still read the data of the old game session from the NetworkList, but it cannot clear the list because of missing permissions and remains stuck with the old session data. The data is only overwritten when the client joins a new session as a client or host.

I have looked at the documentation and implementation of Networklist and have come to the conclusion that this is an intended behaviour. My question is WHY, and how is it intended to get rid of the old session data when offline?

TLDR: The client cannot delete old data from the NetworkList when the connection to a session is terminated.

If I have overlooked something or am still missing important information to understand my question, please let me know. Many thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:supportQuestions or other support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions