Search Issue Tracker
Fixed in 5.1.0
Votes
0
Found in
4.6.1p2
Issue ID
662200
Regression
No
[IMPORTANT][WP8] Prefab references lost when reloading scene
Loading a scene might lead to prefab reference loss on WP8.
The project included has two scenes - a level select scene and a gameplay scene. The level select scene simply loads the gameplay scene after a button press. The gameplay scene sets the background sprite to a prefab sprite. It also reloads itself every second (Application.LoadLevel()).
To reproduce the issue:
1. Open up the strippedRepro project
2. Build & run for WP8, development build
3. Once deployed, press the button "[1]", it loads up the 2nd level
4. The level sets the baground to a blue wallpaper. It also prints out debug.errors on scene reload. Everything works fine, no references are lost so far.
5. Press the "back" button on the Phone, it loads up the previous scene
6. Press the "[1]" button again
7. The background disappears as it's being set to null since the prefab lost it's reference to the sprite
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Mobile] Developer Console does not appear when an error is thrown
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- NullReferenceException is thrown when changing the Inspector preview selection
Add comment