I just returned to a project I made after a few months and decided to update to the newest version (since Unity Hub mentioned there was a security issue with the Unity version I was using). However, once I finished updating, I immediately received two errors saying there was a missing semicolon in Render2DLighting Pass.cs. I looked at the file in question and found that the file just ended in the middle of a line (see the attached picture). What should I do? Can I/Should I revert to the previous version I was using?
#Updated Project from Unity 6 to Unity 6.2 and Render2DLightingPass.cs is corrupted
1 messages · Page 1 of 1 (latest)
make sure all packages are up to date. if the error persists after that then close the project, delete the Library folder, then launch unity again. It will refresh and reimport all packages, and will also reimport all assets
That was a good suggestion, but all my packages are up to date, and deleting the Library folder and relaunching Unity didn't fix the error (the file cuts off at the same place)
that could mean that the cached version of URP you have (assuming this is from URP) is corrupted as well.
You could try deleting it from the Global Cache which will force it to be redownloaded. You'd need to force it to be reimported into the project too which is what that Library delete did before
The good news is that seems to have fixed the rendering issue (thank you), but now there's an issue with InputSystem.cs (the same ending-early thing). Do you think I can fix this issue by deleting Unity/cache/npm/package.unity.com/com.unity.inputsystem, all the various versions of com.unity.inputsystem in Unity/cache/packages/package.unity.com/com.unity.inputsystem, both, or something else?
yeah, you can probably fix it the same way. if it's happening to multiple packages you should probably nuke the entire cache
I deleted the whole cache folder and the Library folder, and now that it's finished downloading everything the original error is back?? I have no idea what to do now...