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

Resolved Burst compiler exception within HDRP 12.1.6 (EDIT caused by MissingUnityEvents)

Discussion in 'Burst' started by Neiist, Jul 25, 2022.

  1. Neiist

    Neiist

    Joined:
    Sep 18, 2012
    Posts:
    26
    Hello there,

    I have been trying to learn how to use the Burst compiler but in my project, whenever Burst compilation is enabled I get 3 errors that appear to come from some code in the HDRP package.

    upload_2022-7-25_12-13-1.png

    The error text is exactly the same for all 3:
    I have tried to delete the Library folder, delete both packages cache and re-install them, but to no avail.

    Am I doing something wrong and how can I fix this problem?

    I'm using:
    Unity 2021.3.1f1
    HDRP 12.1.6
    Burst 1.6.6
     
  2. Neiist

    Neiist

    Joined:
    Sep 18, 2012
    Posts:
    26
    I updated Unity to version 2021.3.6f1 which solved the issue :confused:
     
  3. Neiist

    Neiist

    Joined:
    Sep 18, 2012
    Posts:
    26
    I was about to state that it didn't work for my actual project and that I was about to give up, but it turns out that I figured out the root cause of the problem:

    My project was using MissingUnityEvents that modifies some DLL to add events to certain monobehaviour (in my case, Transform).

    So, as I updated Unity to a newer version while testing Burst on a default HDRP sample project, the DLL was, at that moment, the original, and the Burst compilation started working.

    Then I returned to my project and casually applied the patch like I was used to do. My project compiled, and the Burst compilation threw the same errors as before.

    Reverting to the original DLL fixes the problem.