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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Question Pixel perfect camera and URP

Discussion in '2D' started by mayamay3, Dec 19, 2022.

  1. mayamay3

    mayamay3

    Joined:
    Sep 26, 2022
    Posts:
    9
    Hi, I recently installed the URP package in my project and tried removing the pixel perfect camera in the pixel perfect package and adding the one that comes with the URP package itself. However, I get an error message saying that the camera should be using a 2D renderer (as shown in image). Why is this happening?

    ppc.PNG
     
  2. neptoonism

    neptoonism

    Joined:
    Aug 19, 2019
    Posts:
    18
    There's an 'URP Universal Renderer' and an 'URP 2d Universal Renderer' - you'll see the option to create either of them when you right click in the project window and go to create -> rendering => there are a bunch of renderer related options there.
    You can either create a 'URP 2d Renderer' and then add it as the render to your 'Universal Render Pipeline Asset' (usually your project has a high, medium and low quality asset) or you can create the asset with the 2d renderer and assign the asset in the project settings under graphics. You'll see the error message is gone after doing that.
    The 'URP 2d renderer' has totally different options compared to the regular renderer that's already there in the URP sample scene template.