0
\$\begingroup\$

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?

\$\endgroup\$
0
\$\begingroup\$

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.

\$\endgroup\$
  • \$\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\$ – thirteen4054 Sep 5 at 1:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.