I’m completely lost on how networking works with Unity, I’m just using trial and error and learning slowly. Here is what I’m trying to do. I instantiated a player prefab with Network.Instantiate();
I now want to use GameObject.FindGameObjectWithTag("Player")
so I can get a script from the player gameobject. However, it can’t seem to find the player game object. I guess it’s because there is a different way of obtaining game objects over the network? Could anyone give me an idea of how to do this?
Network.instantiate will spawn an object on all instances connected to the server. So if your gameobject is tagged correctly, you should find the object.
Alright, I’ll look else where for errors.