Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • 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
7
Question by iinot · Jan 31, 2015 at 07:13 PM · 2dspriteimportpixeldistort

Color goes all weird after i import an image

Imported an image to unity as a sprite for a 2D game.

image is 32 x 32 pixel color go![alt text][1]es all weird

how do i fix this or properly import

thanks in advance!

http://answers.unity3d.com/storage/temp/39879-distort.png http://answers.unity3d.com/storage/temp/39881-rocket.png

distort.png (3.4 kB)
rocket.png (330 B)
Comment
Add comment · Show 8
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 Graham-Dunnett ♦♦ · Jan 31, 2015 at 07:14 PM 0
Share

Neither of those images have anything I'd call weird.

avatar image sam2k13 · Feb 01, 2015 at 02:16 AM 0
Share

Try unchexking the generate mip maps check box.

avatar image iinot · Feb 01, 2015 at 04:46 AM 0
Share

I've tried all the solutions above still not working.

Can't believe importing a pixel image is that complicated in unity.

Was pretty easy in gamemaker but I want to develop in unity because I want to learn c# while I make games.

avatar image Eric5h5 · Feb 01, 2015 at 04:52 AM 0
Share

It's not complicated, just turn off texture compression as in Yemachu's answer. (Ideally use truecolor rather than 16 bits, for 100% accurate color, although this will use more memory.)

avatar image iinot · Feb 01, 2015 at 07:35 AM 0
Share

I have tried and it does not work

Show more comments

5 Replies

· Add your reply
  • Sort: 
avatar image
17

Answer by Mr. Mud · Jan 31, 2015 at 10:10 PM

Have you tried changing the "Format" of the image? At the bottom of the import settings, you can select the max size of the image and in which format it should be saved.

I assume it states "Compressed"; try changing it to "16 bits", then click "Apply". This should fix the problem. The downside to this solution is that the texture will take up more memory than it would otherwise... but due to the size of the image this should not pose a problem. (Truecolor should give the same result, though it will use even more memory).

Hope this helps solve your issue.

Comment
Add comment · Show 3 · 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 RayJr · Feb 02, 2015 at 01:16 AM 0
Share

Seconded...

avatar image Cart00nking3rd · Jun 30, 2018 at 07:05 AM 0
Share

Thx dude . RGBA 16bit helps me very well!!!

avatar image AlbertDevelopment · Jul 16, 2021 at 03:32 PM 0
Share

Thanks for the help! RGB 16 Bit fixed the issue instantly! :)

avatar image
14

Answer by Sharflesnarf · Oct 25, 2017 at 01:48 AM

with the newer updates (5 and up) you could just set the compression quality to "high" or "none" and this solves the problem.

Comment
Add comment · Show 3 · 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 Eric5h5 · Oct 25, 2017 at 01:57 AM 0
Share

You can't use any compression, "high quality" or otherwise. Lossy compression introduces artifacts, which isn't acceptable if the goal is 100% accurate pixel colors.

avatar image guitarjorge24 Eric5h5 · Nov 29, 2019 at 07:04 PM 0
Share

high quality compression still caused my sprite to have some some pixel artifacts/errors. I agree that should set to none to completely remove these artifacts.

avatar image leonardoraele · Aug 06, 2020 at 11:25 PM 0
Share

This solved the issue for me. Thanks!

avatar image
7

Answer by Batuhan13 · Jul 03, 2019 at 05:40 AM

Change compression method (At bottom of import settings) to "None" this solved my problem I hope you can fix it =).

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 ryandebraal · Mar 25, 2020 at 12:44 AM 0
Share

This is what worked for me ^

avatar image jaks500 · Mar 02 at 08:25 PM 0
Share

Thank you so much bro.

avatar image
0

Answer by saadali211 · Mar 20, 2017 at 02:19 PM

i have color problem and here is how i fixed it https://youtu.be/eFlZBPc2NG0

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 Krajciks · Feb 26, 2021 at 05:54 PM

Have you tried changing the Format of the image? At the bottom of the import settings, you can select the max size of the image and in which format it should be saved. I assume it states Compressed; try changing it to 16 bits, then click Apply.

JCPenney Kiosk

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

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.

Follow this Question

Answers Answers and Comments

17 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

Related Questions

What's the best art pipeline for 2D animated sprites? 1 Answer

How do I change the import settings when using sprite.create with a WWW.texture from a png image. 1 Answer

How to set default sprite import settings? 1 Answer

Issue with PixelPerfectCamera script and sprite masks (see images)... How to fix? 1 Answer

Sprite object has unwanted offset to the grid 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges