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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution 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).