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.

Question struggle with UI scalefactor and UI animations

Discussion in 'UGUI & TextMesh Pro' started by marlonsoft, Feb 5, 2023.

  1. marlonsoft


    Jan 25, 2021
    I have a problem with my canvases. I am using tweening for animate my UI, for example scroll rect scrolling down or calculated position. I'm having problems with these positioning animations at different resolutions.

    For example, i have a leaderboard list with 20 items on vertical layout. Every item has 100 height on my reference resolution (1242 x 2688 portrait), and my match width or height property is 0.5. On my reference resolution, if i said to scroll rect move with animation to 500 position Y value, that means 500px moves and thats correct. But on different resolution (different from my reference res.) animation is broken. For example (2048 x 2732 portait), its moves more or less than expectation.

    I am trying to fix this problem with Canvas Scale Factor. But i cant figure out how can i do that.