Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2020.3.X, 2021.1.X, 2021.2.X
Votes
0
Found in
2020.1.0a9
2020.3
2021.1
2021.1.3f1
2021.2
2022.1
Issue ID
1345723
Regression
Yes
Sprite.texture is null when it's loaded from SpriteAtlas in an AssetBundle and the Play mode is entered from the Prefab mode
How to reproduce:
1. Open the user's attached project
2. Open the Test Scene
3. In the top bar select MenuTest > PREPARE TO PLAY
4. Open prefabs > Canvas in the Prefab mode
5. Enter the Play mode
6. Press the 'load image 1' button
Expected result: Image gets displayed in the Game view
Actual result: The 'Sprite Loaded Sprite.texture = NULL' gets logged in the Console
Reproducible with: 2020.1.0a9, 2020.1.17f1, 2020.3.14f1, 2021.1.14f1, 2021.2.0b3, 2022.1.0a1
Not reproducible with: 2018.4.36f1, 2019.4.29f1, 2020.1.0a8
Note:
- The issue doesn't reproduce when the Play mode is entered not from the Prefab mode
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
- Memory leak when a lot of UI elements are spawned and despawned
- Warnings are not logged in the Console window when using external code analyzers
- Errors “TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 288“ appear constantly when Prefab is open
- Crash on PPtr<Shader>::operator or NullException errors spammed in console when calling Dispose() on null GraphicsBuffer with baked Reflection Probes
- “EndRenderPass: Not inside a Renderpass” and other Render Graph errors in the Player when Render Graph is enabled and Overlay UI is used
Resolution Note (fix version 2022.1):
A fix for this issue will be available on Unity 2022.1.0a6 and above
Resolution Note (fix version 2021.2):
A fix for this issue is available on Unity 2021.2.0b16 and above
Resolution Note (fix version 2021.1):
Fix for this issue is available on Unity 2021.1.27f1 and above
Resolution Note (fix version 2020.3):
Fix for this issue available on Unity 2020.3.26f1 and above