On starting scene I get this error with HDRP (null reference)

Hi,

maybe someone knows what can be the reason for this error or it’s a bug with HDRP?

I’m using windows 10, unity 2021.2.9f1, HDRP version 12.1.4.

Here is the error that I get:
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.Rendering.HighDefinition.FrameSettingsHistory.AggregateFrameSettings (UnityEngine.Rendering.HighDefinition.FrameSettings& aggregatedFrameSettings, UnityEngine.Camera camera, UnityEngine.Rendering.HighDefinition.HDAdditionalCameraData additionalData, UnityEngine.Rendering.HighDefinition.HDRenderPipelineAsset hdrpAsset, UnityEngine.Rendering.HighDefinition.HDRenderPipelineAsset defaultHdrpAsset) (at Library/PackageCache/com.unity.render-pipelines.high-definition@12.1.4/Runtime/RenderPipeline/Settings/FrameSettingsHistory.cs:133)
UnityEngine.Rendering.HighDefinition.HDAdditionalCameraData.OnEnable () (at Library/PackageCache/com.unity.render-pipelines.high-definition@12.1.4/Runtime/RenderPipeline/Camera/HDAdditionalCameraData.cs:696)

I had the same error and fixed it by disabling the HDAdditionalCameraData Component on the Camera in the scene. Hope it works for you!

2 Likes

We had the same issue:

Window → Rendering → HDRP Wizard

and fix all issues

3 Likes