#Updated Project from Unity 6 to Unity 6.2 and Render2DLightingPass.cs is corrupted

1 messages · Page 1 of 1 (latest)

zealous nebula
#

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?

weary trellis
#

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

zealous nebula
weary trellis
#

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

zealous nebula
weary trellis
#

yeah, you can probably fix it the same way. if it's happening to multiple packages you should probably nuke the entire cache

zealous nebula