Unity Cannot find Namespace 'UnityEngine.Experimental.Rendering.Universal;

I am getting this error

error CS0234: The type or namespace name ‘Universal’ does not exist in the namespace ‘UnityEngine.Experimental.Rendering’ (are you missing an assembly reference?)

I am using Unity 2018.4.16f1

Please help

In case anyone happens upon this. First thing first, make sure you have the universal render pipeline installed. Second, if you are using an assembly definition asset make sure you add references to the universal pipeline assets you are using in the inspector of your assembly definition asset under the Assembly Definition References portion.

It tells you what the problem is. That namespace doesn’t exist in the assemblies referenced in your unity project.

That namespace is part of the the

com.unity.render-pipelines.universal

Package according to:

https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@10.2/api/UnityEngine.Experimental.Rendering.Universal.html


Maybe try installing it

https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@10.2/manual/InstallURPIntoAProject.html