Search Issue Tracker
Fixed in 2021.1.X
Fixed in 2020.3.X
Votes
0
Found in
2020.3
Issue ID
1274645
Regression
No
Sprite reference is missing when loading Scene from AssetBundle
How to reproduce:
1. Open the attached project
2. Open scene TestAB
3. In the Hierarchy window, select the GameObject "Canvas"
4. Enable the GameObject by enabling the checkbox at the top of the Inspector window
5. Press the Play button
6. When in Play mode and focused in the Game view, press D
Expected result: no exceptions are thrown
Actual result: an exception is thrown: "NullReferenceException: <...> TestLoad.LoadImageUnity (System.Int32 index) (at Assets/TestLoad.cs:54)"
Reproducible with: 2020.3.25f1, 2021.1.0a4
Not reproducible with: 2021.1.0a5, 2021.2.6f1, 2022.1.0b2
Could not test with: 2019.4.34f1 (The AssetBundle 'topbar' can't be loaded because it was not built with the right version or build target. UnityEngine.AssetBundle:LoadFromFile (string)
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
- Unity crashes during the scene template selection in the "Inspector" tab
- [Android] [iOS] [UnityWebRequest] Requests with "UnityWebRequest" are open for SSL Proxying
- SetWindowsHookEx does not prevent Windows key input when Editor or Player Window is focused and Active Input Handling is set to “Input System Package (New)” or “Both”
- Crash on GetEffectiveBc7TextureCompressor() when loading and unloading all Assets in the Project
- Terrain Masks do not ignore the mipmap limit
Resolution Note (fix version 2021.1):
Fixed in 2021.1.0a5
Resolution Note (fix version 2020.3):
Fix for this issue available on Unity 2020.3.26f1 and above