• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Torrek · Jun 16, 2017 at 03:09 PM · uiimageui image

Images getting distorted -SOLVED

This problem has been solved

I am working on a game, which I am creating a UI for atm. However, there is this one image, that whenever I import it to unity (as a PNG file), it turns out distorted. This also happens no matter whether it is in 'image' form, 'sprite' form or whatever. This does not happen to any of the other sprites.

In these pictures you can see, how it looks in the standard Windows image viewer (how it should look), and how it looks in Unity (bottom): alt text

alt text

good-one.png (4.2 kB)
unavngivet.png (6.6 kB)
Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image danmartelly_caliper · Jun 16, 2017 at 05:49 PM 0
Share

I've had issues with distorted sprites when I used image files which did not dimensions that were a power of 2.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Torrek · Jun 16, 2017 at 03:13 PM

Here are the settings the sprite is set to: alt text


settings.png (42.0 kB)
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by webcam · Jun 16, 2017 at 04:16 PM

You probably need to turn off anti-aliasing in render settings. I would read this blog post it has the settings you need for perfect pixel art.

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

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Torrek · Jun 17, 2017 at 07:35 AM 0
Share

You probably need to turn off anti-aliasing in render settings. I would read this blog post it has the settings you need for perfect pixel art.

Anti aliasing was already turned off, and it is not due to the camera not being in orthographic mode, that this happens (I have tested that). This is an issue with the image genuenly distorting, as it should be clear looking at the two pictures at the top.

*This also happens no matter whether it is in Point filter mode, or bilinear or trilinear

avatar image Torrek · Jun 17, 2017 at 07:39 AM 0
Share

I solved the problem I found out it was due to the compression that unity does to images that made it so. I just turned the compression from "Normal Quality" to "None" and then it was fixed, and it now looks as it should.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

110 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Image custom fillOrigin 0 Answers

Check if UI element is fully inside another UI element 0 Answers

UI Image material did not get instanced. Why? 0 Answers

Extending UnityEngine.UI.Image and add extra field available in Inspector 0 Answers

UI image with button component not tracking mouse correctly 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges