- Home /
Using NetworkSceneManager with NetCode,Using Network Scene Loader with NetCode?
I want to use NetworkSceneManager to load another scene when a host starts a game. The code starts the host, then loads the other scene. Just using the regular scene loader doesn't transfer the player objects between scenes.
For example:
NetworkManager.Singleton.StartHost(); NetworkSceneManager.LoadScene("Multiplayer",UnityEngine.SceneManagement.LoadSceneMode.Single);
Answer by VanToRiaXVII · 2 days ago
It's not that strange that you aren't getting your player objects. If you're creating a new scene, it'll be empty and you'll have to spawn objects on it. I'm not very familiar with Unity Netcode, but you should probably use the NetworkSpawnManager to spawn your players onto the next scene:
https://docs-multiplayer.unity3d.com/netcode/current/api/Unity.Netcode.NetworkSpawnManager
Your answer

Follow this Question
Related Questions
How do I setup the Unity Network Connection Facilitator 0 Answers
The network system work only for host 0 Answers
RPC Call Mix Up Issues 0 Answers
Get RPC senders ID, or IP? 1 Answer