Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

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

Discussion in 'High Definition Render Pipeline' started by avataris-io, Feb 7, 2022.

  1. avataris-io

    avataris-io

    Joined:
    Jun 23, 2020
    Posts:
    26
    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)
    upload_2022-2-7_19-29-27.png
     
  2. reecpj

    reecpj

    Joined:
    Apr 5, 2013
    Posts:
    4
    I had the same error and fixed it by disabling the HDAdditionalCameraData Component on the Camera in the scene. Hope it works for you!
     
    J0wly likes this.
  3. james1345

    james1345

    Joined:
    Feb 6, 2019
    Posts:
    1
    We had the same issue:

    Window -> Rendering -> HDRP Wizard

    and fix all issues
     
    Michal_Stangel likes this.