Search Unity

Multiplayer Raycasts issue

Discussion in 'Editor & General Support' started by sunflowergames, Sep 11, 2019.

  1. sunflowergames

    sunflowergames

    Joined:
    Aug 26, 2018
    Posts:
    2
    So I am making a multiplayer game using photon 2, the problem arises where my build script uses raycasts and needs a camera assigned to it, the issue comes from the fact that the multiplayer script creates a new character for every player and thus there is no assigned camera for that script, I have tried other methods but that led to when one player placed a block all the other players raycasts had a block placed on them as well, is there anyway to fix this, I can post my scripts if the need arises. I apologize for my own stupidity.