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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Camera Movement

Discussion in 'Scripting' started by M_Keyla_M, May 26, 2020.

  1. M_Keyla_M

    M_Keyla_M

    Joined:
    Dec 24, 2014
    Posts:
    57
    Hey everyone!
    I have searched everywhere ain't i just can't get it right.
    I want a camera that follows the character, can rotate on it's own but can also rotate the character and have it walk in that direction. I've tried a bunch of different codes i found but nothing does the trick! im a noob when it comes to coding...please help
     
  2. Milambur88

    Milambur88

    Joined:
    Jan 15, 2020
    Posts:
    28
    Hi,

    this is what i use but it doesn't rotate on its own though i found Brackeys does good tutorials for camera controls on YouTube.

    but i am guessing you would need 2 scripts and assign a button to switch the camera mode.

     
  3. M_Keyla_M

    M_Keyla_M

    Joined:
    Dec 24, 2014
    Posts:
    57
    Thank you!!! Will definitely check it out!
     
    Milambur88 likes this.