PhotonTeamExtensions.GetPhotonTeam method always return null

Options

so i made sure to set player to a team before using this but it just always returns null

Answers

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options

    Hi @Frigider,

    Thank you for choosing Photon!

    Not sure how you are setting player to a team or if you are using PhotonTeamsManager properly/correctly.

    You probably are not waiting long enough for the team assignment to happen as this does not happen automatically on the client and instead we wait for the server to confirm.

    Please wait for the callback OnPlayerPropertiesUpdate or event PhotonTeamsManager.PlayerJoinedTeam.

  • Frigider
    Options

    Alright thank you i solved it thanks to ur help