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

MissingMethodException: Default constructor not found for type UnityEngine.Rendering.HighDefinition.

Discussion in 'High Definition Render Pipeline' started by radiantboy, Jul 3, 2021.

  1. radiantboy

    radiantboy

    Joined:
    Nov 21, 2012
    Posts:
    1,593
    When I make a build I see this error thousands of times, how to fix it?

    MissingMethodException: Default constructor not found for type UnityEngine.Rendering.HighDefinition.Lit
     
    gutescur likes this.
  2. radiantboy

    radiantboy

    Joined:
    Nov 21, 2012
    Posts:
    1,593
    Solution found.. "Managed Stripping Level" set to low in Player Settings avoids this and also makes my HDRP build work.
     
    timothywwcase and gutescur like this.
  3. MylesLambert

    MylesLambert

    Joined:
    Dec 31, 2012
    Posts:
    61
    Are there any plans to fix this? HDRP is the only reason I can't have the projects stripping level set to high.
     
  4. chap-unity

    chap-unity

    Unity Technologies

    Joined:
    Nov 4, 2019
    Posts:
    695
    On which version is the issue still happening ? Do you have any repro ?
    Just tested on latest alpha version and latest HDRP and could build with high stripping level without any problem
     
  5. PutridEx

    PutridEx

    Joined:
    Feb 3, 2021
    Posts:
    1,120
    I actually tried to build my scene when making a showcase, and gave up after a while because of this issue. Now that I've seen this thread, I lowered stripping from high to low and it worked.

    Unity 2021.2.4f
    I exported the scene for you to test: https://drive.google.com/file/d/1PLz86PlbkyLyHTSkIfj6k-BnYjL3TXjR/view?usp=sharing

    Just build the scene with dev mode enabled to see the log in-game, you'll get this:

    and of course the scene doesn't load at all

    Make sure stripping is set to high in player settings (it should be, but just in case)
    edit: issue happen with medium stripping as well
     
    Last edited: Dec 25, 2021
    iDerp69 and chap-unity like this.
  6. iDerp69

    iDerp69

    Joined:
    Oct 27, 2018
    Posts:
    40
    I am having this issue. Is there any movement towards a fix @chap-unity ? Is there anything that can be written in the link.xml file to assuage the issue temporarily?
     
  7. masak

    masak

    Joined:
    Aug 14, 2011
    Posts:
    51
    Code (CSharp):
    1. <linker>
    2. <assembly fullname="Unity.RenderPipelines.HighDefinition.Runtime"/>
    3. </linker>
    This helps.
     
    radiantboy likes this.