Search Unity

  1. We have added sub-forums for the experimental MLAPI and Unity Transport Package. Please use the new forums to discuss related topics.
    Dismiss Notice
  2. All Pro and Enterprise subscribers: find helpful & inspiring creative, tech, and business know-how in the new Unity Success Hub. Sign in to stay up to date.
    Dismiss Notice
  3. Dismiss Notice

[MLAPI] How can a connected user get the current state of a variable ?

Discussion in 'MLAPI' started by LIVAI10, May 20, 2021.

  1. LIVAI10

    LIVAI10

    Joined:
    Nov 4, 2019
    Posts:
    3
    Hello,

    Does anyone know how a new user, after being connected to an other user can get the current state of all networked variable ?

    Or do you have a link to the documentation on this that i missed?

    Thank you !
     
  2. luke-unity

    luke-unity

    Unity Technologies

    Joined:
    Sep 30, 2020
    Posts:
    126
    With MLAPI you always connect to the server. The server will send the state of all NetworkVariables automatically to all new connected clients.
     
  3. LIVAI10

    LIVAI10

    Joined:
    Nov 4, 2019
    Posts:
    3
    It work, thank you
     
unityunity