Problems with Spawn

Hi everyone, I’m new to Unity and I started trying to learn about Unity Multiplayer and I tried to create a simple game using that would be divided into 2 projects: The server and the client. I managed to make the connection between them but I do not know how to perform spawn of the players.

I’ve tried everything and I do not know how to continue (I believe it is correct).

I am using NetworkServe and NetworkClient

If you’re both new to Unity and also trying to learn how to use the Unity Multiplayer services and the Unet networking API, I’d suggest sticking with how they designed it all to work.

So Unity Multiplayer, and the game features of Unet in general, are designed with the idea that both the client and the server are not only built from the same project but are also running the same scene. Also, Unity Multiplayer’s services are generally built around the idea that individual players will serve as hosts (both functioning as a client and as a server for all other clients).

Take a look at the manual and some of the tutorials out there. They will have you create a single project with some kind of gameplay scene that both host and client share, and for tutorials about lobby functionality they will have you create a lobby scene for connecting players together using the Unity Multiplayer services.

If you don’t like how that works, either look into some of the other networking API’s available, or roll your own.

1 Like

Thank you, I did not know that.