Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question Why can't change the Pixel Perfect Camera to Orthographic?

Discussion in '2D' started by mzedler, Aug 21, 2023.

  1. mzedler

    mzedler

    Joined:
    Aug 10, 2023
    Posts:
    3
    When I add the PPC, it defaults to Perspective and the Projection block is locked. An info note says the following: "Projection settings have been overridden by Pixel
    Perfect Camera."
    The problem with this is that now the camera also takes the Z axis into account, which I don't want since it's a pure 2D game. Is it possible that I am missing something?

    2022.3.5.f1 / Win11 / DX11

    upload_2023-8-21_16-2-26.png
     
  2. MaxwellTan

    MaxwellTan

    Unity Technologies

    Joined:
    Mar 3, 2022
    Posts:
    75
    By default the pixel perfect camera is using Orthographic but for some reason in your case it was set to perspective.

    Follow this step to change your projection to orthographic

    Step 1 - In the Pixel Perfect Camera Inspector

    Step 2 - Remove Pixel Perfect Camera Component
    upload_2023-8-22_11-41-43.png

    Step 3 - Change the camera projection to orthographic
    upload_2023-8-22_11-44-47.png

    Step 4 - Add the Pixel Perfect Camera Component
    upload_2023-8-22_11-46-12.png

    Now your Pixel Perfect Camera should be using orthographic projection

    Hope this is helping
     
  3. zachstronaut

    zachstronaut

    Joined:
    Jan 30, 2016
    Posts:
    6
    In Unity 2022.3.10f1 LTS, in a brand new 2D URP project created from Unity Hub, every time you use the GameObject > 2D Object > Pixel Perfect Camera (URP) menu option it will create a cursed GameObject that has a pixel perfect camera component and a Unity camera that is locked in perspective projection and cannot be changed.
     
    DemonFangZ likes this.
  4. jenioss

    jenioss

    Joined:
    Mar 2, 2015
    Posts:
    8
    For future users comming here:
    No need to remove your pixel perfect cam, just
    1- un-tick it
    2- change cam projections params
    3- re-tick the Pixel Perfect Camera

    upload_2024-5-18_14-6-28.png
     
  5. Pants123

    Pants123

    Joined:
    Jan 25, 2016
    Posts:
    2
    Thank you. I was having the same issue in my project. Creating a new Pixel Perfect Camera comes in as perspective by default. 2022.3.22f1