Unity images problem

Sorry I am new to the unity and i got a question to you guys:)
my plan is to finish a 2D game in a weak (finished all drawing and music)
but I got a problem when I start to use unity , when I put my draws into unity scene but white line will around my images
how to fix my images ?please help me (sorry do they have tutorials teach you how to fix this on youtube?)
sorry i got very poor english don’t even know how to search those on youtube

it’s fine when it’s in adobe photoshop:

unity :


Don’t think this is a Unity problem. Did you try a black background in Photoshop to see if the white line is there as well?

Hi,
Maybe you should use .png instead of .gif as they’re better quality. If your images are animated I suggest export all frames as particular .png files and then put them together with Unity’s animator. (Google it).

Hope this helps :slight_smile:

Why export them at all? If they’re done in Photoshop just save the PSD into your project and let Unity do it for you.

2 Likes

I was wondering about that and how that exactly works. Does Unity convert them or something?

1 Like

Yeah. How they’re stored ultimately depends on what your import settings are - just like meshes, audio, etc.

1 Like

Ok, thanks. I was afraid that PDF files would make my builds a lot larger than needed.

PDF? :slight_smile:

At the bottom of the import inspector in the preview window it’ll tell you the final file size based on your import settings. It’ll also tell you what type of compression it’s using - if any.

1 Like

PDF? :slight_smile:

PSD. I’m an idiot…

Yes sir
I changed background to black and it look fine
and sorry i will try all others 1.5 hour later i need go to my school now it would take a while

1750397--110612--Untitled.png

What the issue looks like to me is an alpha channel thing. GIF images don’t have semi-transparency with alpha channel. Every pixel is either 100% transparent or 100% opaque. Right along the outer edge of that image you have pixels that are part-way transparent and when it turns them opaque, it fills in what it thinks the background is like.

PNG and PSD files do support alpha channel, so that’s why people were suggesting other file formats.

1 Like

Thank you very much sir my problem is solved
I am happy that I had save all my PSD files so I don’t need do all the draw again
the problem is if I export my images to GIF and then put those images into unity then it will have white line around my image
if I just put my PSD files into unity and it look fine
thank you very much guys i may go to google and look how people edit the images now