Lists over a network

Hi all,

I am really struggling with the concept pf server, host, client.

When a user inputs their name I want their name, as a string to be added to a list for the purposes of a scoreboard.

I’ve recently stumbled across SyncListStrings but cant figure out where i should keep the list, how to update it from each player or how to send the updated list contents to the clients.

Could someone please offer a logic / concept explanation?

For additional information: The network manager spawns the player prefab, which has the UI stuff to enter name. There is also a GameController object which exists in the world, who’s job is to spawn the quiz board via NetworkServer.Spawn. The quiz board has all the UI for the quiz which the players will see. Part of that is a scoreboard section - currently a Text object. I want the text object to print the contents of the list, which it does only for the Host. Not for server only and not for any client.

Please help :frowning:

You should keep the list on either the host, or on all clients and host… the last one is better… do some method witv [command] and send that a new player has input their name… then you should send the string with ur method to the host… on the host u add the string to a list and then u do [clientRpc] rpcsendnewname(string str) then you do the same in that mrthod… add it to a list:) and BOOOm! U got the list for your scoreboard on all clients and you can easily add in more names or remove them via cmd—> rpc and remove(keyname)