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. Dismiss Notice

Dithering constant error in Unity

Discussion in 'Editor & General Support' started by Velo222, May 16, 2019.

  1. Velo222

    Velo222

    Joined:
    Apr 29, 2012
    Posts:
    1,437
    Hello,

    I am using the Post-processing stack V2 I believe (Unity version 2018.3.12f1), and when I turn on/select the "Dithering" option in the post-process settings it gives me this error in the editor (and all the time during runtime as well):

    Code (CSharp):
    1. NullReferenceException: Object reference not set to an instance of an object
    2. UnityEngine.PostProcessing.DitheringComponent.Prepare (UnityEngine.Material uberMaterial) (at Assets/PostProcessing/Runtime/Components/DitheringComponent.cs:63)
    3. UnityEngine.PostProcessing.PostProcessingBehaviour.TryPrepareUberImageEffect[T] (UnityEngine.PostProcessing.PostProcessingComponentRenderTexture`1[T] component, UnityEngine.Material material) (at Assets/PostProcessing/Runtime/PostProcessingBehaviour.cs:457)
    4. UnityEngine.PostProcessing.PostProcessingBehaviour.OnRenderImage (UnityEngine.RenderTexture source, UnityEngine.RenderTexture destination) (at Assets/PostProcessing/Runtime/PostProcessingBehaviour.cs:255)
    5.  
    It also causes my particles and skysphere to disappear in my game, although that could be simply because of the error, but I'm not sure. It happens every frame I believe in runtime, and spams in the editor when I hover over different windows.

    I've tried "Dithering" in both Forward and Deferred rending, but it throws the error in both modes. Does anyone know what might be causing this?
     
    sky_is_tumbling likes this.
  2. sky_is_tumbling

    sky_is_tumbling

    Joined:
    Feb 26, 2018
    Posts:
    8
    been a year since then and this is still a issue, cmon someone answer already