new to multiplayer in unity. I am trying to create a host button that makes it go to a different scene, where the player spawn in.
SceneManagrer.LoadScene("Scene name here");
Also, are you doing a mutiplayer game? If you are a begginer you shouldn’t make one.
I consider myself as a medium-advanced gamedev and I still have problems with multiplayer.
Try out singleplayer
its a complicated thing, i dont even know how exactly do it.
but something like that:
save the players data,
delete the player,
load another scene,
spawn the players.
there is many things to do it work, sadly.
how do i spawn the player into a different scene.
this is what i did but did not work. i made two C# one for host button where it start hosting the server and the second one is for changing the scene. but when i try clicking the button and load the scene but no player was not spawning.
The problem will be that there is not any player in that scene.
do i have to make a script where you have to delete the player from the main menu on to the level scene?