Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more..
    Dismiss Notice
  3. Dismiss Notice

Lines appear when playing

Discussion in '2D' started by eespike, Dec 23, 2020.

  1. eespike

    eespike

    Joined:
    May 9, 2020
    Posts:
    3
    Hi i have a problem. Everything is fine but when I launch the game, lines appear like in the video :
     
  2. eespike

    eespike

    Joined:
    May 9, 2020
    Posts:
    3
    like this :
     

    Attached Files:

  3. eses

    eses

    Joined:
    Feb 26, 2013
    Posts:
    2,637
    @eespike

    This has been asked like 100 times here.

    Maybe google / search for similar questions?

    But I can try to summarize it...

    You can try following things (not listed in any order here, and not all options are needed for every case):
    - Use pixel perfect camera setup
    - Disable AA
    - Add padding around your sprites
    - Add your tile sprites to texture Atlas (use padding)
    - Make your Tilemap tiles overlap a bit using Grid settings
    - Tile sprites - use point filter if filtering is not needed
    - Tile sprites - don't use mipmaps if not needed
     
    raarc likes this.
  4. raarc

    raarc

    Joined:
    Jun 15, 2020
    Posts:
    535
    like eses said, create sprite atlas and set padding to 2
     
  5. eespike

    eespike

    Joined:
    May 9, 2020
    Posts:
    3
    sorry i didn't know, i asked here because i didn't find by searching on google. Thank you btw
     
    richardkettlewell likes this.
  6. eses

    eses

    Joined:
    Feb 26, 2013
    Posts:
    2,637
    "sorry i didn't know, i asked here because i didn't find by searching on google. Thank you btw"

    I don't know what you actually searched for...

    When I google your question + tilemap (which I guess you are using):
    "unity" + Lines appear when playing" + "tilemap"

    I get several results with similar discussions...

    BTW - I find it annoying that when answer is given, OP is modified and information gets lost.