Trying to learn more about Unity multiplayer networking. Looking at the following docs:
It states:
“”"
Netcode for Gameobjects’ high level components, the RPC system, object spawning, and NetworkVariables all rely on there being at least two netcode components added to a GameObject:
- NetworkObject
- NetworkBehaviour
“”"
Ok, so I need to add these two components to my game object. I added NetworkObject to my object, this was easy. The second should have also been easy, but it was not. I finally figured out that NetworkBehaviour comes in the Netcode package, so I added the following too my game objects script:
using Unity.Netcode;
I found that out, because there is an example script here: Golden Path Module One | Unity Multiplayer Networking
How do you find which package a class belongs to, when given just the class name? I don’t want to have to hunt down example scripts to find out what package a class is in, it takes too long.