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
- ScrollView speed is slower when entering Play mode
- UI Builder elements disappear and "Semantic - Unknown template name" error appears when changes to "Template" parameter are saved
- Renderers outside Light Probe hull use incorrect Ambient Probe values when "Renderer Light Probe Selection" is set to "Use Ambient Probe" and "Light Probes" on Mesh is set to "Blend Probes"
- ArgumentNullException error occurs when selecting a Camera in the Hierarchy with the Scene view open
- Clicking 'Open Editor Log' through the Console fails to open redirected Logs when relative Log files exist outside of the Project root
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).