Hello Unity Community,
I’m seeking help with an issue that’s persisted after upgrading my Unity 2022.3.46 project to Unity 6. Upon upgrading, I encountered multiple errors like the following:
Library\PackageCache\com.unity.2d.pixel-perfect\Editor\Converter\U2DToURPPixelPerfectConverter.cs(26,65): error CS0234: The type or namespace name ‘PixelPerfectCamera’ does not exist in the namespace ‘UnityEngine.Experimental.Rendering.Universal’
I couldn’t resolve it initially, so I reinstalled my Windows 10 system and successfully upgraded Unity to version 6000.0.23. However, after noticing the release of Unity 6000.0.24, I updated to that version. Unfortunately, this brought the same error back.
To troubleshoot, I created a completely new URP 2D project, but the error reappeared in the new project as well. I tried clearing every Unity cache I could think of, including the GI cache and global cache files in AppData, but the error persists.
After examining Library\PackageCache\com.unity.2d.pixel-perfect\Editor\Converter\U2DToURPPixelPerfectConverter.cs
, I noticed an issue with the URP namespace, as shown in the screenshot (Image 1). This file is in the PackageCache, so it seems like it shouldn’t be modified. However, I manually edited the reference from UnityEngine.Experimental.Rendering.Universal
to UnityEngine.Rendering.Universal
, and upon re-opening the project, the error disappeared. However, I then got a new message indicating that this change may not be a proper solution (Image 2).
I’m reaching out to see if anyone else has encountered this error and might have a reliable fix. Any insights would be greatly appreciated. Thank you in advance!