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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Bug 2020.3.10/Addressables 1.21.18/SBP 1.21.20 Missing Scripts in scene cause build failures

Discussion in 'Addressables' started by einWikinger, Oct 12, 2023.

  1. einWikinger

    einWikinger

    Joined:
    Jul 30, 2013
    Posts:
    95
    tl;dr When a scene included in addressables contains a missing script, the whole addressable build fails with a NullReferenceException.

    Please see https://forum.unity.com/threads/202...einfo-includedtypes-may-contain-null.1420781/ for the root causes in the SBP package and potential workarounds if you're able to embed the SBP package.

    This won't happen with "normal" scripts that are residing top-level in C# files. Instead, it seems to be a edge case for components that are nested inside classes, for example, like it's the case with the HDRP SceneIdMap "system", which does exactly that and is a frequent troublemaker for us.

    Bug report filed as IN-57338 with reproduction project.
     
    Last edited: Oct 12, 2023
    Cellenseres likes this.