Search Unity

Question Scene Managment Network Manager

Discussion in 'Multiplayer' started by CaptainTrebor, Dec 23, 2023.

  1. CaptainTrebor

    CaptainTrebor

    Joined:
    Jun 1, 2023
    Posts:
    3
    How can I spawn the player prefab from the Network Manager in a different scene as it was called? I have the Network Manager in the menu scene and when I start the game I want to StartHost(); and then the player prefab to spawn in the next scene. How do I accomplish that?
     
  2. arfish

    arfish

    Joined:
    Jan 28, 2017
    Posts:
    782
    How about this schematic design for your game?
    psuedocode:
    1. Start game and select your player
    2. Change scene
    3. Start Network host, or client which now will spawn the player in the new scene.