- Home /
Network Lobby/Manager - Spawn player when I tell it to
Hello
I'm currently doing something in UNET and I want to spawn my player when the user presses a "Spawn" button, but with the way the Network Lobby/Manager is set up, it spawns automatically, and I can't find where the player spawn gets called and override it. And disabling "Auto create player" stops the lobby player from being created (which is one of the most annoying things I've ever experienced in game development), and again, I can't find anything to override to manually spawn it without breaking things and/or desync things.
Any help with this would be greatly appreciated!
Answer by XBabineOne · Mar 10, 2017 at 02:35 PM
Hello,
I thinks it's impossible to overwrite the scripts or doing somethings else, you should (and I think is the best way) create your own multiplayer.
For me, I have created my own multiplayer manager & lobby. I thinks you should do it because the lobby and network manager created by unity is a way to set up a quick multiplayer server.
For create a multiplayer manager, it's very simple refer to: https://doc-api.photonengine.com/en/pun/current/class_photon_network.html
If you need help for creating GUI, refer to: https://docs.unity3d.com/Manual/gui-Basics.html
I hope it is going to help you,
Babouche
Your answer
Follow this Question
Related Questions
New multiplayer setting broke Network Lobby 0 Answers
Player Prefab on Lobby Managers? 5 Answers
How to select different player prefab for every player (multiplayer) 0 Answers
Best method; Multiplayer server browser/lobby? 1 Answer
Network Lobby Example from Asset Store doesn't work on SendReturnToLobby from Game Scene 0 Answers