Hi,
I have a Unity 2023.2.5f1, URP and I installed Cinemachine from the Package Manager. It installed the 2.9.7 version.
After this, Unity threw itself into an infinite loop trying to update one script:
It would be a good idea to avoid these if the package is in the Library
folder since they are immutable.
Scripts in the Packages folder are NOT immutable - that’s the point of embedding into Packages - so I’m a little unclear on what you did to produce this error. Can you elaborate on the history of this project?
Sorry, well, the only “interesting” thing about the project is that it started on 2023.1 then it was updated to 2023.2. It started as an HDRP project but I uninstalled it and installed URP (v16.0.5 - this may played a role in this situation since the file is a pixel-perfect file)
line 3: #if CINEMACHINE_URP || CINEMACHINE_PIXEL_PERFECT_2_0_3
Don’t mind the path, that’s Unity virtual path, no matter if the package is in the Packages
folder (mutable) or it’s in the Library/PackageCacge
(immutable) you should reach your files on this same way.
So basically this message is misleading a little bit, when the error comes the package is in the PackageCache
(immutable):

As soon as I move it to the Packages
folder the error stops.
FYI, the auto update is trying to replace line 39.
from
UnityEngine.Experimental.Rendering.Universal.PixelPerfectCamera pixelPerfectCamera;
to
UnityEngine.Rendering.Universal.PixelPerfectCamera pixelPerfectCamera;
–
I tried the other way around (new project with URP at the begin with), this error doesn’t show.
hmmm… sounds like you have a project that’s in a weird state. Rather than try to debug it, it might be worthwhile to clean the slate by creating a new project and transferring the stuff over.
Yeah, I know how to fix it, I reported if you guys want to look into it, sorry this thread of mine wasn’t super-clear for some reason.
1 Like