Search Unity

how to receive and send data in 2020.3.15f1

Discussion in 'Multiplayer' started by MilitaryG, Sep 30, 2021.

  1. MilitaryG

    MilitaryG

    Joined:
    Apr 26, 2021
    Posts:
    28
    this is the way to do it before 2018.2 and I get error
    `Assets\client.cs(35,6): error CS0619: 'RPC' is obsolete: 'The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.'`


    now I'm confused and can't use nor Multiplayer nor NetworkIdentity as I get error
    `(are you missing a using directive or an assembly reference?)`
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Your link is to the old legacy networking. That was removed and replaced by Unet, which was then deprecated and replaced with MLAPI as the officially supported package.

    The most popular network API's from what I've seen right now are MLAPI, Mirror (Unet fork with significant improvements), and some flavors of Photon. I'd suggest taking a look at them as a place to start.
     
    MilitaryG likes this.