Search Unity

Feature Request Disable pixel snap on coordinates

Discussion in 'Immediate Mode GUI (IMGUI)' started by manutoo, Mar 22, 2023.

  1. manutoo

    manutoo

    Joined:
    Jul 13, 2010
    Posts:
    524
    Hello,

    in Unity 5, the OnGUI system didn't touch the (x,y) coordinates.

    Now, OnGUI will snap the (x,y) coordinates to the nearest integer, to get a better pixel-perfect rendering.

    I'd like to have the option to go back to the old behavior, as it allows to do smooth scaling & moving animations on the GUI elements. With the snapping, the animation is jerking.

    This behavior prevents me to update my older game done with Unity 5.6, and thus it's going to be removed from the Apple Store sooner or later... :(

    I know I can use GL instead, but the performance level is not acceptable for heavy menus on older PCs.
     
    Last edited: Mar 22, 2023