- Home /
 
Load variable from server
In my current project I have a server started on one PC, later on, another computer connects to the server and joins in. What I'd like is to have a variable (in this case an enum for what scenario is loaded) that is chosen on the host PC to be read on the client PC when the client connects. [SyncVar] doesn't do this if I understand correctly as the value changes before the second PC connects.
How would I go about having that second PC know that the scenario variable has changed?
Your answer
 
             Follow this Question
Related Questions
How do I make variables update on a network script? 1 Answer
I have a problem with variables/networking. 0 Answers
Trouble syncing health in network 1 Answer
Strings through a network? 1 Answer
Does Unity Netcode/mlapi NetworkLists sync delta changes or the entire list when a value changes? 0 Answers