- Home /
Question by
Paranoiac · Jan 08, 2016 at 07:19 PM ·
networkingtextvariablessyncclient-server
[Networking] Changed text does not appear changed for players who just connected
Hello, whenever the "OnStartServer()" is called, I call an RPC, that changes the text component of the Text child of every single Button, in my Button array. Even though the text in the Buttons changes for the server, it remains blank for the players that connect AFTER the text has been changed. I tried adding a Network Identity to the Buttons and the Text aswell, but nothing changed. What I want to do, is to keep the text sync'd for every player, even if they connect after I make a change to it. I looked up the [SyncVar] attribute, but it can't be used on arrays, and I really don't want to declare 10 strings, in my code, that remain synced. Any help/suggestions?
Comment