Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Rotate 2D camera

Discussion in 'Cinemachine' started by AntLewis, Mar 10, 2021.

  1. AntLewis

    AntLewis

    Joined:
    Feb 2, 2010
    Posts:
    254
    Hey there, I’ve added a 2D cinemamachine camera to my project. I need to rotate it along it’s Z axis based on user input. What’s the best way to go about this? Many thanks for any help!
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    The 2D camera has DoNothing for the Aim, which means you can just manipulate its Transform's rotation directly. Alternatively, you can use m_Lens.Dutch, depending on your needs.
     
  3. AntLewis

    AntLewis

    Joined:
    Feb 2, 2010
    Posts:
    254
    Ah fantastic thanks!!