How can I make it, so my players won't switch cameras

Options
I'm using unity starter assets third person character controller I can Instantiate the prefab fine and when Player 1 joins it is fine they can jump around and move freely everything is good until another player joins and the cameras get all messed up. How can I fix this?


Answers

  • Alejandrazo
    Options

    When you create a scene in which you then instantiate a camera with photon, keep in mind that the camera will also work for the other players if it is not thought in your code that it does not do it, if you have the ability to try that the camera is pre-created within the scene and it recognizes in due course which player must follow(yours)

    You can try to create the camera with the scene, and after when join your player in game without camera set it target of the camera of the scene.


    Think about it like this, you doesnt need to create 1 floor per 1 player, all load his version of the same floor, the same with the camera happens.