- Home /
[SOLVED] The High Definition Render Pipeline has compiler errors when creating a new project.
-EDIT- I fixed it by completely reinstalling Unity. I deleted every version of the editor and Unity Hub and every folder related to Unity. It works again now. Something got seriously screwed up before and I'm glad it's fixed. I hope this helps somebody if they have the same issue!
I have had this issue since Unity 2021.1 and I just can't seem to fix it. When I create a new HDRP project there are compiler errors such as Library\PackageCache\com.unity.shadergraph@12.1.1\Editor\Generation\Targets\BuiltIn\Editor\ShaderGUI\MaterialAssemblyReference\RawRenderQueue.cs(12,24): error CS1061: 'Material' does not contain a definition for 'rawRenderQueue' and no accessible extension method 'rawRenderQueue' accepting a first argument of type 'Material' could be found
AND Library\PackageCache\com.unity.render-pipelines.high-definition@12.1.1\Runtime\Compositor\AlphaInjection.cs(59,30): error CS0115: 'AlphaInjection.Cleanup()': no suitable method found to override
There are 16 errors.
I have deleted the library folder, the packages folder, deleted and reinstalled the HDRP package and it just won't work. I'm currently trying to use Unity 2021.2 and it stills has the same errors with HDRP version 12.1.1. Any help will be very appreciated!
Answer by swatter555 · 6 days ago
This is a rational response? Scrub your hard drive on any unity file whatsoever and reinstall everything and hope for the best? I'm not faulting the OP, but you might think the Unity team might take an interest in fixing this? All I did was import the URP package and viola I have to eradicate every unity file on my computer and reinstall everything to even have a hope of actually using it? Really?
I believe that my issue was my fault. I had different parts of Unity stored across multiple drives. I now have everything besides Unity editor versions stored on a single drive and haven't had any issues since. Also it only started happening after I created two projects with the same name. My guess is I screwed something up and I just had to reinstall Unity. After reinstalling I haven't had any issues regarding my original issue and I have created many projects using HDRP. If you are having issues, there are a few other things you can try. Try deleting your library folder in your project, after making a backup, and let Unity remake the folder. You can try getting the latest URP version from GitHub inside the Unity editor. There are few tutorials out there on how to do this. I'm sorry if this didn't help. If these don't work than your best bet is to either keep researching or to reinstall Unity.
I'm glad your not having issues anymore. Unfortunately, I have no recourse and no practical/rational way to deal with the issue short of reformatting my hard drive. This is a nasty, nasty bug they don't even want to acknowledge. I deleted every Unity file I could find and reinstalled everything. The only thing I didn't do was mess with the windows registry. At this point, I'm just giving up. It's all black magic at this point and I hope that I don't encounter this again in some other form in the future.
I'm sorry that you couldn't get it fixed. I can't imagine was is causing this bug other than there being an issue with your machine. I'm not saying this is the case, just that I have no other idea of what would cause this. Also maybe your hard drive or ssd is having issues. I'm sorry I couldn't help and hope you can solve your problem!
Your answer
Follow this Question
Related Questions
i Cant use unity remote in a new project 1 Answer
project organisation: managing source and/or libraries 2 Answers
Initial 3D plane view 2 Answers
Move project in a new project 2 Answers