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

Bug [Solved] Materials of addressables lose most textures and settings when loaded in build

Discussion in 'Addressables' started by JonathanHeldVRI, Jun 9, 2022.

  1. JonathanHeldVRI

    JonathanHeldVRI

    Joined:
    Jul 16, 2021
    Posts:
    2
    We use addressables to load scenes and objects (shelfs and bottles).

    If we load them in the editor they look like they are supposed to. If we load them in the build every setting except the baseMap (e.g. alpha clipping, transparency, normal map etc) seem to be gone on the bottles but not the shelfs. We build the shelfs in the project and the bottles in another project.

    The shelfs were missing their textures and settings, until we rebuilt them. We rebuilt the bottles multiple times, but their settings are sill wrong in the build.

    We tried to build a scene with a bottle in it. The bottle that was built in the scene looked right, but bottles loaded as addressables still looked wrong in the build.

    Here you can see the same bottle loaded as an addressable (left) and placed in the scene (right) in the build (first) and in the editor (second).

    In Build

    In Editor
     
    Last edited: Jun 10, 2022
  2. JonathanHeldVRI

    JonathanHeldVRI

    Joined:
    Jul 16, 2021
    Posts:
    2
    We found the problem. It was caused by a difference in the "High Definition RP"-Package. We created the bundles with "High Definition RP" version 12.1.6 and the project was built with "High Definition RP" version 12.1.7.

    My guess in the editor it automatically used the correct shader, but it was stripped away in the build.