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

How to change main camera pivot

Discussion in '2D' started by Sly88, Jun 25, 2019.

  1. Sly88

    Sly88

    Joined:
    Feb 22, 2016
    Posts:
    73
    Hi guys,
    I would like to change camera pivot and rotate around point like as on screen. By default when I change z value in the rotation camera have pivot as a center point on the screen. I rotate 2D camera. Is any chance to change the pivot?
     

    Attached Files:

  2. LiterallyJeff

    LiterallyJeff

    Joined:
    Jan 21, 2015
    Posts:
    2,807
    Make the camera a child of the an empty gameobject, offset the camera, and then rotate the empty gameobject.
     
    hoangtung88 likes this.