Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question RectTransform's bottom border changes in one resolution but in other doesnt change

Discussion in 'Immediate Mode GUI (IMGUI)' started by Kujji, Aug 10, 2023.

  1. Kujji

    Kujji

    Joined:
    Oct 20, 2021
    Posts:
    109
    I made UI auto scale for different resolutions from Unity, and it works well for all of them, but on my phone i have resolution 1080x2400, i tryed it in Unity and borders of object dont strech right, so there appears a gap.

    Canvas values


    Video of problem:
     
  2. Kujji

    Kujji

    Joined:
    Oct 20, 2021
    Posts:
    109
    Done by stretching mods rect between top and bottom anchored objects.