Search Unity

Resolved Building suddenly stopped working

Discussion in 'Editor & General Support' started by jlorenzi, May 3, 2023.

  1. jlorenzi

    jlorenzi

    Joined:
    May 2, 2021
    Posts:
    292
    Edit: I cannot believe myself for not trying this earlier but restarting my pc fixed the problem.

    I built my game and tested it and found a bug, after I fixed the bug I tried building it again and I got these errors
    upload_2023-5-3_16-35-36.png
    When I fixed the bug all I did was slightly change a script to change an int's value. I have no idea why this is happening. I heard that if you make a new scene and copy paste all the objects over it would fix it but I have 6 scenes in my game; copy and pasting all the objects, copying the scene settings, and baking lights/other things would take forever. I've also heard that it doesn't even work sometimes and I'm having trouble baking lighting at the moment so it's not really a solution.

    Can anyone help me?
     

    Attached Files:

    Last edited: May 4, 2023