Search Unity

How can I let players choose a camera?

Discussion in 'Game Design' started by faulknordonald, Sep 5, 2022.

  1. faulknordonald

    faulknordonald

    Joined:
    Sep 9, 2019
    Posts:
    172
    I made a "game" with multiple cameras (different perspectives). How can I allow players to choose which camera to view?
     
  2. BIGTIMEMASTER

    BIGTIMEMASTER

    Joined:
    Jun 1, 2017
    Posts:
    5,181
    what part are you having trouble with?

    Finding cameras in the scene?

    Identifying cameras in the scene?

    Communicating with cameras in the scene?

    Looking through cameras in the scene?

    The more specific you can word your question, the easier it is for somebody to give some suggestions.
     
    angrypenguin likes this.
  3. angrypenguin

    angrypenguin

    Joined:
    Dec 29, 2011
    Posts:
    15,620
    The basic answer is that you write some scripts to turn on the camera you want, and turn off all of the others, then give players a button, menu or similar to tell that script what to do.
     
  4. faulknordonald

    faulknordonald

    Joined:
    Sep 9, 2019
    Posts:
    172
    Thank You. I think I'll be able to figure it out. I learned a little bit more about UI, so I can figure out how to give the user an option (button) to choose camera. Now, just to figure out how to write the script. I'll look into it further.
     
  5. faulknordonald

    faulknordonald

    Joined:
    Sep 9, 2019
    Posts:
    172
    Basically, just to look through the cameras.
     
  6. BIGTIMEMASTER

    BIGTIMEMASTER

    Joined:
    Jun 1, 2017
    Posts:
    5,181