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
- OnPostprocessAllAssets() is not called for a modified Prefab when another Asset is set Dirty in the same callback
- [Android] UIToolkit ClickEvent is fired when the device is rotated
- Compilation errors occur when "uintBitsToFloat(int)" gets used in OpenGLES
- User Reporting does not send reports when Managed Stripping Level is set to Low or higher
- Editor crashes and a window with "GetManagerFromContext: pointer to object of manager 'MonoManager' is NULL (table index 5)" error is thrown when launching a project with a corrupted library
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).