Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

onStartLocalPlayer not being called

Discussion in 'Multiplayer' started by abhishudesilva, Nov 16, 2022.

  1. abhishudesilva

    abhishudesilva

    Joined:
    Nov 1, 2021
    Posts:
    3
    I am making a multiplayer game with netcode and due to a bug with the camera i coded it to instantiate a new camera when a player joins. however it's just not working. onStartLocalPlayer is just not being called when a player joins the game. i really need help with this
     
  2. RikuTheFuffs-U

    RikuTheFuffs-U

    Unity Technologies

    Joined:
    Feb 20, 2020
    Posts:
    210
    Hi @abhishudesilva , what multiplayer framework are you using? How are you instantiating the player?
     
  3. abhishudesilva

    abhishudesilva

    Joined:
    Nov 1, 2021
    Posts:
    3
    unity netcode for gameobjects, i'm instantiating using the network manager