Hi!
I’m facing an issue with regards to materials not being loaded consistently. More specifically, we have several custom UI materials that are placed on prefabs, and these prefabs are used in both built-in scenes, and scenes loaded by Addressables. Whenever the game’s started, and the UI object is shown in a built-in scene, it will show the object rendering as expected. The moment a scene from Addressables is loaded (exclusively loaded, so it’s the only scene active at that point) and the prefab is used, the material on the object will either show, or won’t (I can’t clearly determine a reproduction scenario). Unloading the scene and returning to a built-in one, will not always restore the visibility of the material. Note: the prefab itself is not marked as an Addressable asset.
Example:
We have a popup-screen system that can be used from anywhere in the game, which uses a blurred background. This blur is a UI Image component with a custom material on it. It’s this blur material that’s shown inconsistently. All other materials found in this prefab are default and built-in Unity materials.
We see this behavior in a different project in a similar way, where we have a small custom outline and gradient material on interactable elements.
Can this be fixed? We’ve added the actual shader to the Graphics settings’ Always Included Shaders list, and the material to the Player’s Preloaded assets’ list.
Additional info:
Unity versions: 2020.3.18 and 2018.4.34
Addressables versions: 1.19.11 and 1.17.17
Thanks in advance!