The URP version older than 11 causes the editor to crash in versions older than 2021.2.8
The error occurs even when creating an empty project containing an URP or HDRP package.
In addition, the package manager does not install older versions of URP or HDRP
Any solution? Same here. Also when creating a 3d core project and trying to import the URP package.
I thought that the problem lies with URP versions 12+, but I noticed that I can create a 2D URP project with package version 12.6 in Unity Editor 2021.3.6… What could be different between the 11 version and the later ones?
Anyway, I speculate that the issue is caused not by the package, but some other reason which can be triggered in other circumstances as well. At least for mac computers.
I posted a fix in another thread along with a lot of detail which I’ll link at the end in case you’re interested, but rather than repost the whole thing or have you read through the detailed version I’ll just repost the fixes here:
The Fixes
There are several possible steps to take, depending on the state of your project & whether or not you can succesfully open it in the Unity editor to make changes, and it should go without saying, please BACKUP your project folder before trying any of these changes…
If you can open your project succesfully in the Unity Editor,
open your project in the Unity Editor
go to Edit → Project Settings → Editor
scroll down the settings until you reach the “Texture Compressors” section
change the value of the “BC7 Compressor” option so that it reads ISPC (Legacy), and not bc7e or Default
Close the Project Settings window
Save the project
You should now be able to import URP or HDRP successfully.
If you can’t open your project in the Unity Editor because this issue causes it to crash to desktop,
open your project folder in Windows Explorer (you can use the “…” option in Unity Hub next to your project, and select “Show in Explorer”)
inside your project folder, go to the “ProjectSettings” folder
find a file named “EditorSettings.asset” and open it in notepad or your favourite text editor (it’s a very small file)
look or search for an entry named “m_Bc7TextureCompressor” - it may not exist if you have never changed it’s value before, so don’t panic if you can’t find it.
If you found it in the settings, change the value to “1”. It should now look like " m_Bc7TextureCompressor: 1"
If you didn’t find it in the settings, add a new line and copy & paste all of the following text from inside but excluding the quotes: " m_Bc7TextureCompressor: 1". NOTE: I’m not sure if the order of the settings matter in this file. I suspect they don’t, but for context in my versions of this file, this line always appears on the line immediately before the “m_EtcTextureCompressorBehavior” setting, like so:
…
m_Bc7TextureCompressor: 1
m_EtcTextureCompressorBehavior: 1
…
save your changes to “EditorSettings.asset”
open your project in the Unity Editor
the URP / HDRP import process should now complete succesfully, and the editor should open as expected.
you can confirm your earlier changes by looking in the Project Settings as described in Fix 1.
If you tried Fix 2 and you still can’t open your project in the Unity Editor, you likely have a different problem. However, as a last resort you can manually remove any package, such as URP, that is stopping your editor from loading.
open your project folder in Windows Explorer (you can use the “…” option in Unity Hub next to your project, and select “Show in Explorer”)
inside your project folder, go to the “Packages” folder
find a file named “manifest.json” and open it in notepad or your favourite text editor.
look or search for the name of the package you want to remove e.g. for URP look for the entry “com.unity.render-pipelines.universal”: followed by whatever version number you’re using.
delete the entire line if you wish to remove the package entirely. Note that depending on the packge you remove & state of your project, this can result in missing dependecy or reference errors when you next load your project, but it should at least load.
be careful if the package you remove is the last one in the list - as this is a .json file, every line has a comma “,” after it *except" for the last line. If you remove the last package listed, make sure you also remove the comma from the previous package entry AKA now the new last package.
save your changes to “manifest.json”
open your project in the Unity Editor
the project should now open succesfully in the Editor.
if you want to add URP or HDRP at this point, follow the steps in Fix 1.
I did everything you said and it didn’t work, BUT I did something else, I reversed the order of the settings and set the setting called “m_EtcTextureCompressorBehavior” to 1 and it worked,
Tried to revert to Built-In pipeline, but deleting the URP stuff crashes Unity.
I had to make a new project and reimport all.
Luckily I am researching how to move now.
I wonder if in the future there will be a way to change pipeline without having to remake the entire project…