Search Unity

Desktop Exe Build gfx different from Editor In Game

Discussion in 'General Graphics' started by ury2ok2000, May 1, 2018.

  1. ury2ok2000

    ury2ok2000

    Joined:
    Dec 29, 2012
    Posts:
    46
    Hello, not sure how to explain, so will attach 2 pictures. One is in Editor after play (Game screen), and other is from the build exe (Desktop). I need it to match the editor in game (where everything except what is lit by torch is black. It used to be this way on previous builds, i dont know what changed it though. Any thoughts? EditorInGame.png InEXEBuildofGame.png
     
  2. ury2ok2000

    ury2ok2000

    Joined:
    Dec 29, 2012
    Posts:
    46
    Ok so finally figured it out. The Black shadow over the screen is from a target texture that is created from the spritelightkit (which i believe is code i got form github or something). Anyway it uses a shader Hidden/Blend Image Effect and i had to go to project settings Graphics then down toward bottom include it in the Always included shaders section.
     
  3. ury2ok2000

    ury2ok2000

    Joined:
    Dec 29, 2012
    Posts:
    46
    Actually the problem was with a debug draw on an asset (sprite mask asset i believe), that was switched on just for the spiked circles.