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

Feature Request Disable pixel snap on coordinates

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

  1. manutoo


    Jul 13, 2010

    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