Hello I am making this layout:

enter image description here

I used sprites for birds but used UI for the blue food thrower. I used UI for it so it will not get cut when screen resolution changes. But I also need to add food itself which I need to make 2D to interact with birds. Now It is not visible over UI, So I changes Canvas-Render Mode to world space. But I cannot adjust text in that mode. Its not visible. Then I tried converting the food thrower to Sprite but it get cut. Any authentic and cleaner way to do it?

  • \$\begingroup\$ Not sure I understand what you mean when you say that converting the food thrower to a sprite causes it to "get cut" when you change the size. I assume that you're using a fixed aspect ratio? If so, all of the elements on the screen should resize when the playable area size changes and if you're using some method of absolute screen positioning, they should remain in the same place on the screen. \$\endgroup\$
    – Joe
    Jun 1 '20 at 10:48
  • \$\begingroup\$ Your text probably isn't visible due to font size/scale. If you switch to world space try making the text either super big, or the font size super small. \$\endgroup\$ Jan 27 '21 at 2:43

i cant load your image.

most of the time for screen dependent things we use UI. but sometimes it makes you limited like physics or....

first check that can UI give all of your needs. if it works for all of your needs, just use UI and everything in canvas. anchors are all you need to put UI elements in right place.

UI is basically made to be shown over all Scene Elements.

if you need to work in the scene, some parameters can help you. Camera Position and Borders. just search for camera position and borders to place and scale elements.

  • \$\begingroup\$ No I need to keep birds in sprite because I need to use colliders. I was just wondering is it possible to scale only my shooter when the screen resolution change. I saw the Camera Position and Borders but it clamps a moving object in the camera. it is not what I am looking for. \$\endgroup\$ Sep 5 '19 at 1:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .