Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Scale with screen size works for buttons but not for sprites

Discussion in 'UGUI & TextMesh Pro' started by rajaleneweit, Apr 8, 2020.

  1. rajaleneweit

    rajaleneweit

    Joined:
    Oct 24, 2018
    Posts:
    29
    Hello, guys,

    first, I should tell you that I am using Unity 2019.2.0f1. Now my problem is that I have a scene with buttons and sprite which are inside canvasses, and I want to use Scale with screen size. It also works, but only for the buttons and not for the sprites. I changing Transform to Rect Transform on the sprites and setting the anchors, but it still doesn't work.

    Here is a video:


    What am I doing wrong?

    Edit: You should know that I copied my scene, so at the end I have two scenes. The difference between the two scenes is that on the one scene my sprites use the normal Transform component, while on the other scene they use Rect Transform just like the buttons. I will start showing the problem on the scene where use the normal Transform.

    Edit: Solved. I decided to make the sprites get images and play around with the anchor settings. Everything works fine, now.
     
    Last edited: Apr 9, 2020