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.
  2. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

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:
    20
    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:
    4,835
    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:
    14,959
    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:
    20
    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:
    20
    Basically, just to look through the cameras.
     
  6. BIGTIMEMASTER

    BIGTIMEMASTER

    Joined:
    Jun 1, 2017
    Posts:
    4,835