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. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

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.