Search Issue Tracker
Won't Fix
Won't Fix in 1.19.X
Votes
0
Found in [Package]
1.19.18
Issue ID
ADDR-2550
Regression
No
Fail loading image to Prefab when the Player Mode Script is set to 'Use Existing Build'
Reproduction steps:
1. Open the attached 'AddressableTestProject.zip'
2. Go to the 'Window -> Asset Management -> Addressables -> Groups'
3. 'Build -> Clean Build -> All'
4. 'Build -> New Build -> Default Build Script'
5. Make sure the Player Mode Script is set to 'Use Existing Build'
6. Open the 'TestScene'
7. Enter Play mode
8. Click on the 'Load Prefab' button
Expected result: The image is loaded successfully
Actual result: The image fails to load
Reproducible with: 1.19.17 (2020.3.29f1, 2021.2.10f1), 1.19.18 (2019.4.35f1, 2020.3.29f1, 2021.2.10f1, 2022.1.0b8, 2022.2.0a4)
Note: if the Player Mode Script is set to 'Use Asset Database' image loads successfully
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Skinned Mesh Renderer with multiple Animator Components does not render when "Optimize Game Objects" is enabled
- [iOS]Certain characters are not displayed when using iOS devices with 18 OS and newer
- Trees do not render in 'Unity Terrain - URP Demo Scene'
- Silent crash when clicking in Scene View in a specific project
- The Player renders black on a Quest headset when MSAA, Post Processing, and Spacewarm depth submission are enabled
Resolution Note:
There are no fixes planned for this Bug
Resolution Note (1.19.X):
The prefab has a reference to the sprite asset located in the Assets folder, but not the version of the sprite that is packed into the AssetBundle. The LoadAssetAsync has to be used to load the image, then the prefab's Image component has to be set to reference the loaded sprite. The prefab appears to load the image correctly when using the 'Use Asset Database' play mode script. However, that only works because that script will load all Addressable assets from the Asset Database (in other words from the Assets folder).