Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Best way to get initial player data from clients?

Discussion in 'Multiplayer' started by hengineer, Nov 24, 2015.

  1. hengineer

    hengineer

    Joined:
    Mar 18, 2013
    Posts:
    13
    Hi, I'm using the High-Level API to discover and join a game.
    Each player needs to be initialized with information known only to its client (eg. device name, character appearance, user settings chosen before connecting, etc.). How should I send this information to the server?
    - Using the "extraMessage" parameter of AddPlayer?
    - Sending a Command with all the info as soon as I join?
    - Custom Serialize/Deserialize functions?
    - Or is there some way of doing this automatically that I haven't discovered yet (eg. special client-authoritative SyncVars)?

    Thanks!