-
Notifications
You must be signed in to change notification settings - Fork 456
Description
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:
- the client connects to a game
- the host of that game writes some data to the network list
- 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!