Player prefab does not spawn after hosting and quitting game (UNet),Quit button for server stopping player respawn (UNet/Networking)
Hi all,
I am currently working on my first UNet project so I am new to all this. I am using the default Network Manager and my game uses matchmaking, not LAN. I am trying to make a script where a player presses it, they leave the match and are sent to the offline scene. When the player joins/hosts a game they are sent to the online scene. However when the Host presses it, the next time he tries to host/join a match, the player prefab does not spawn.
Here is my script :
public void Quit()
{
NetworkManager.singleton.StopHost();
NetworkManager.singleton.StopClient();
}
Any help is highly appreciated, Thanks!
Hi there. I have the same issue. Did you ever resolve this?
Your answer
Follow this Question
Related Questions
I have a problem with my Camera detecting and following the player!! pls help... 0 Answers
Unity Networking Code not working 1 Answer
How to put the server to the player and client see be in the camera? 0 Answers
Setting and serializing an object state visible/invisible through a random variable? 0 Answers
Clash of clans networking. 1 Answer