- Home /
Question by
attacker5 · May 16, 2016 at 05:17 PM ·
unity 5networkingrpccommand
How do you store variables on server?
Hello,
I am using Unet and I want to store a list variable on my server,
public List<Team> teams = new List<Team>();
and when a new client connects they can get info on the other teams by accessing the teams list at some index and get the info they need. The problem is, it seems like unet can only sync basic int and string variables, and I cant seem to find a way to communicate from server to one client either to do the syncing manually.
How do I store variables somewhere on the server so I can access it from any client? Also how do I run a function on a specific client from the server?
Thank you.
Comment