Search Unity

Question UI layer jitters when moving player

Discussion in 'UGUI & TextMesh Pro' started by FizzyPixel, Feb 13, 2023.

  1. FizzyPixel

    FizzyPixel

    Joined:
    Nov 22, 2020
    Posts:
    2
    Hi, in my game when I move my character, the UI layer jitters rapidly left and right by a single pixel.
    I thought and checked if it had anything to do with cinemachine or moving with FixedUpdate but the issue persisted when both were unused.

    Here are my settings for the canvas and the camera: upload_2023-2-14_0-39-2.png


    upload_2023-2-14_0-39-39.png
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,689
    Have you tried just making the Canvas render mode be screen space overlay instead of screen space camera?

    What you're seeing might be some weird interaction of the cinemachine brain with the pixel perfect stuff. If the UI canvas is already low-res and static, no sense in re-pixel-perfecting it.
     
  3. FizzyPixel

    FizzyPixel

    Joined:
    Nov 22, 2020
    Posts:
    2
    Setting it to overlay solves the jitter, but it fits itself to the game viewport size, and not the cropped frame size.
    Also, it doesn't receive my post process effects.
    upload_2023-2-14_18-35-36.png
     
  4. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,455
    Please use the dedicated UI forums when discussing UI.

    I'll move your post to the correct forum.