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. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Bug Upgrading from 2022.2.4 to 2022.2.6 breaks URP?

Discussion in 'Editor & General Support' started by lclemens, Feb 15, 2023.

  1. lclemens


    Feb 15, 2020
    I recently upgraded my project from 2022.2.4 to 2022.2.6. Unity crashed during the upgrade and also it crashes multiple times per day (which it has been doing ever since 2022.2, even with a relatively simple project).

    Anyway, whenever I select the Directional Light in the Hierarchy, I used to see a script that was automatically added that looked like this:


    but now it just shows this:


    So when I run I get errors saying "The referenced script (Unknown) on this Behaviour is missing!" The same situation happens with UniversalAdditionalCameraData.

    What happened to the additional data stuff? I checked the documentation and release notes for 2022.2.6 and it doesn't say those scripts were deprecated or anything.

    I tried uninstalling URP and reinstalling, but not only did it fail to fix the problem, now every single material in the entire project is the dreaded pink. It is URP 14.0.6.

    Ever since 2022.2 the crashing has been extremely frustrating. The only thing I can think of to do next is to start a whole new project and begin importing everything from the old project into it.

    EDIT: Sooo... uhhh.. deleting the Library and obj directory and then reopening the project fixed both problems (additional-data scripts and pink materials). I have no idea why.
    Last edited: Feb 16, 2023
  2. Kurt-Dekker


    Mar 16, 2013
    Lucky! If you're ahead of LTS you are an unpaid test pilot and should wear a crash helmet.

    This also means your project could get wadded up into so much tin foil on a moment's notice, so proper aggressive use of source control and experimental branching is critical.

    Anything else is just playing with a ticking bomb.
    lclemens likes this.