making icons/buttons for game

I’m designing icons for my project but it gives me lots of problems, maybe I’m not using a good program for this or didn’[t set up unity properly but it’s frustrating.
All of my icons look really pixelated, I’m using photoshop, when doing a straight line it will look blurry and not smooth line, and when i import to my scene it looks like this

home

the black pixels near the house arent supposed to be, it was made when i imported to unity. is there a better software to make icons and vector shapes that will not look pixelated?

As soon as you import the asset, in the Import Settings change:

  • Texture type : Advanced
  • Generate Mip Maps: Unticked
  • MAX Size: 4096 (Always greater than your actual image)
  • Format: RGBA 32 bit

I assume that your assets are exporting fine from Photoshop, your issue is in Unity.

Select the image and check the inspector:
If you’re using the new 4.6 UI system:

  • change the Texture Type to “Sprite(2D and UI)”
  • Untick Generate Mip Maps (which you don’t need since you’re working on a UI).

Your Canvas also affects the output of your images:

  • First make sure that all your Scales are 1
  • Click on your Canvas in the Hierarchy panel
  • In the Canvas component, If you have Screen Space Overlay, select “Pixel Perfect” (this will ensure that the pixel ratio is correct)

Also make sure to tick “Preserve Aspect” in the Image component if you’re using Image Type : Simple.
If you have big backgrounds or window backgrounds, it’s advisable to use Sliced Images.

That’s about it!
I also advise you to read some game assets reference articles to get around the import settings, compression, atlasing etc…

Joe