how to receive and send data in 2020.3.15f1

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?)

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.

1 Like