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. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

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:
    33,705
    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:
    9,430
    Please use the dedicated UI forums when discussing UI.

    I'll move your post to the correct forum.