1
\$\begingroup\$

Previously when I made games, I used ui assets from the asset store. Working with those assets was easy as the backgrounds were plain. However, I'm now working on a game where custom graphics are used for UI. So, I need to specify size of backgrounds,icons etc to the art team. I understand how aspect ratio works with regards to unity camera, but having trouble understanding the relation between camera size and Canvas. For example, for a camera size of 4.6, an image size of 517X920 will cover the whole screen in 9:16 aspect. However, the same image is considerably larger when used as UI image under the Canvas. Can someone please help me understand how Canvas deals with image sizes?

\$\endgroup\$
  • \$\begingroup\$ Are you working with 2D or 3D? \$\endgroup\$ – Hamza Hasan Feb 16 '16 at 5:55
  • \$\begingroup\$ Screenspace overlay. 2D \$\endgroup\$ – SanSolo Feb 16 '16 at 5:56
  • \$\begingroup\$ and UI Scale Mode of Canvas Scaler? \$\endgroup\$ – Hamza Hasan Feb 16 '16 at 6:32
1
\$\begingroup\$

Ok. First I had to chose a screen size I'm designing for. I chose 768X1024. Gave artists this as reference, and they created all elements wrt this size. Next, in Unity, I set 768X1024 as reference resolution for Canvas. So, everything looked just like the artists had designed.

\$\endgroup\$

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.