unity config_error ai_generated true

NullReferenceException: UniversalRenderPipeline.asset is missing or not assigned in Graphics Settings

ID: unity/urp-renderer-missing

Also available as: JSON · Markdown · 中文
95%Fix Rate
90%Confidence
1Evidence
2023-09-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
Unity 2022.3 active
Unity 2023.2 active
URP 14.0 active
URP 16.0 active

Root Cause

The URP Render Pipeline Asset is not assigned in Project Settings > Graphics, or the asset has been deleted or corrupted.

generic

中文

在项目设置 > 图形中未分配URP渲染管线资源,或者该资源已被删除或损坏。

Official Documentation

https://docs.unity3d.com/Packages/[email protected]/manual/InstallURPIntoAProject.html

Workarounds

  1. 95% success Go to Project Settings > Graphics, and under 'Scriptable Render Pipeline Settings', assign the UniversalRenderPipelineAsset (e.g., from Assets/Settings/URP-HighQuality.asset). If missing, create a new one via Assets > Create > Rendering > URP Asset (with Universal Renderer).
    Go to Project Settings > Graphics, and under 'Scriptable Render Pipeline Settings', assign the UniversalRenderPipelineAsset (e.g., from Assets/Settings/URP-HighQuality.asset). If missing, create a new one via Assets > Create > Rendering > URP Asset (with Universal Renderer).
  2. 90% success If the asset file is deleted, recreate it: Right-click in Project window, select Create > Rendering > URP Asset (with Universal Renderer), name it, then assign in Graphics Settings.
    If the asset file is deleted, recreate it: Right-click in Project window, select Create > Rendering > URP Asset (with Universal Renderer), name it, then assign in Graphics Settings.

中文步骤

  1. Go to Project Settings > Graphics, and under 'Scriptable Render Pipeline Settings', assign the UniversalRenderPipelineAsset (e.g., from Assets/Settings/URP-HighQuality.asset). If missing, create a new one via Assets > Create > Rendering > URP Asset (with Universal Renderer).
  2. If the asset file is deleted, recreate it: Right-click in Project window, select Create > Rendering > URP Asset (with Universal Renderer), name it, then assign in Graphics Settings.

Dead Ends

Common approaches that don't work:

  1. 70% fail

    Reimporting all assets does not assign the missing pipeline asset; the Graphics Settings need manual update.

  2. 50% fail

    Reinstalling URP package without assigning the asset in settings leaves the error unresolved.