Search Unity

2D unwanted outlines

Discussion in 'General Graphics' started by Mahrkeenerh, Jul 11, 2018.

  1. Mahrkeenerh

    Mahrkeenerh

    Joined:
    Jul 2, 2018
    Posts:
    24
    The title says pretty much all - I have a 2D scene, and there is a sprite which shouldnt have any outline, but because of some reason, I can see a little white line going around.

    Disableing anti aliasing didnt work. Any other advices ?

    Thanks
     
  2. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,014
    Hi!
    What are the texture settings for that sprite? Is it in an atlas or not?
     
  3. Mahrkeenerh

    Mahrkeenerh

    Joined:
    Jul 2, 2018
    Posts:
    24
    Sorry I didnt reply earlier,
    I didnt mess with those settings, so it should be set to default.
     
  4. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,014
    What is the source texture format? Is it PSD, by chance?
     
  5. jvo3dc

    jvo3dc

    Joined:
    Oct 11, 2013
    Posts:
    1,520
    Sounds like a white background that is showing through semi-transparent pixels. A screenshot of the problem would help a topic like this in any case.
     
  6. Mahrkeenerh

    Mahrkeenerh

    Joined:
    Jul 2, 2018
    Posts:
    24
    I'll be honest with you, I have no idea. I am kinda beginner in this stuff, pretty much never worked with graphics, textures ... Those images that I used were created in app ... sketch. Sorry if I cant help you.
    This is a screenshot from built game:
    https://i.imgur.com/jcKGMvo.png
    the white outline is shown on for example the right platform. If I open the game in Unity, and move those platforms up or down, the white sometimes disappears.
     
  7. jvo3dc

    jvo3dc

    Joined:
    Oct 11, 2013
    Posts:
    1,520
    Well, that is exactly what I thought it was. "I have no idea" kind of results in, sorry, we can't help you. The file format is important here.
     
  8. Mahrkeenerh

    Mahrkeenerh

    Joined:
    Jul 2, 2018
    Posts:
    24
    Are you looking for the image format ?
     
  9. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,343
    Check "Alpha is Transparency" on your texture assets.
     
  10. Mahrkeenerh

    Mahrkeenerh

    Joined:
    Jul 2, 2018
    Posts:
    24
    Since my sprites have a texture type of: Sprite (2D and UI), I dont have the "Alpha is Transparency" option available. Only option where it is available for me is the Cookie, and when I tried using it, it just changed all of my objects to white ... or better say, transparent objects.