Search Unity

Question Orthographic Camera Displays Differently to Scene Camera

Discussion in '2D' started by coolcatcoder, Feb 8, 2023.

  1. coolcatcoder

    coolcatcoder

    Joined:
    Jun 29, 2022
    Posts:
    3
    upload_2023-2-8_19-12-3.png
    (Compression probably has destroyed those screenshots...) Hopefully you can see the giant pink lines on the left (game view), which are notably absent in scene view (on the right). There should be an entirely black tile there, with no pink lines, as seen in scene view.

    Probably important info:
    • These pink lines switch to the opposite side of the tile if the sprite order is reversed, or the mesh is switched from cube to quad.
    • I'm using ecs/dots.
    • This is an animated sprite, which I am using this shadergraph to show. upload_2023-2-8_19-16-55.png
    • I did ask for help on the Unity Discord server, that conversation can be found here and also here.
    • This appears to happen for both gameobjects and entities.
    • From further testing this appears to actually happen on the non-orthographic camera aswell.
     
    Last edited: Feb 11, 2023
  2. coolcatcoder

    coolcatcoder

    Joined:
    Jun 29, 2022
    Posts:
    3
    found a solution!