Kokodoko
Kokodoko

Reputation: 28128

Image size incorrect in Unity

I have a Unity 2D project with a fixed screen size of 800x450 pixels. I have imported a background image that is also 800x450 pixels. When placed on the stage, the image only takes up half of the screen. The scale of the image is set to 1,1. The Z position is 0.

Why is the image displayed too small? How can I display the image at the correct resolution?

incorrect size

Does this mean that I have to design all my game assets at 2x the required size? Or that I somehow have to set the scale for all imported assets at 2? What is the recommended workflow?

EDIT

I have added a screenshot of the camera settings:

enter image description here

Upvotes: 1

Views: 2027

Answers (1)

Colton White
Colton White

Reputation: 976

I would trying making your camera orthographic, and set the size of the camera (not the transform) to be half the height that you would like it to be (225)

Also if you are looking for pixel perfect game. here is a pretty good article from Unity about how to make that work and it explains some of the camera aspect ratios and scaling

http://blogs.unity3d.com/2015/06/19/pixel-perfect-2d/

Upvotes: 1

Related Questions