Hello! please tell me whether it is possible? (NM - NetworkManager)
Create multiplayer locations:
see 1 screenshot
I run a server:
- Load offline scene
- NM checkbox DontDestroyOnLoad off
- Click start button
SceneManager.LoadScene(“test1”);
NetworkManag.networkPort=7777;
NetworkManag.StartServer();
I get the server to the port of 7777, location test1
I run a second unity, and click start button2, repeat on port 7776 and the other scene (NM checkbox DontDestroyOnLoad off)
SceneManager.LoadScene(“test2”);
NetworkManag.networkPort=7776;
NetworkManag.StartServer();
test1 and test2 have their own NM
Disabled objects on the server I enabled command:
NetworkServer.SpawnObjects();
Total:
1 server - test 1 - 7777 port
2 server - test 2 - 7776 port
When a client connects, I get an error “The prefab ‘Player_Prefab’ has multiple NetworkIdentity components. There can only be one NetworkIdentity on a prefab, and it must be on the root object.”
how to connect a client to many servers?
I run a client:
- Load offline scene
- NM checkbox DontDestroyOnLoad off
- Click start client
NetworkManag.StartClient(); (default 7777 port)
how to change the scene test1 after the connection to the test2
how correctly? (see screenshot 2)
I need connect 1 client to many server… client settings saved in MySQL Data Base
P.S. Sry for my bad En

