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’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Feedback Allow Properly Disabling Pixel Snapping in Pixel Perfect Camera (URP)

Discussion in '2D' started by digiwombat, Jan 13, 2021.

  1. digiwombat


    Sep 26, 2013

    There's currently no user-facing way to disable Pixel Grid Snapping in the PixelPerfectCamera.

    As it is, the extremely overzealous pixel snapping of PixelPerfectCamera script in URP is causing jitter in otherwise perfectly pixel-friendly movement. And non-pixel-friendly movement for that matter. The sprite pixel snapping on camera follow targets is just flipping out.

    I've tested about four different ways of locomoting the character and the only thing that fixes the jitter is commenting out the lines for Pixel Snapping in the PixelPerfectCamera.cs file (194,210,215-216... probably just 194, but just to be safe).

    I would prefer not to have custom code changes in 3rd party packages (especially package manager packages) so I'd really like to see a user-facing option (the lack of one was noted in a thread back in like April of last year.)

    EDIT: Also, I'd be fine with a compiler flag or something similar if a front-end option isn't workable for some reason.
    Last edited: Jan 14, 2021
    ZombByeGod, cvoigt and NotaNaN like this.