Search Unity

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

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

  1. digiwombat

    digiwombat

    Joined:
    Sep 26, 2013
    Posts:
    48
    Hi.

    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.