Search Issue Tracker
By Design
Votes
0
Found in
5.4.0f3
Issue ID
821365
Regression
No
SerializedAssetLoader.LoadAsset() fails to load serialized asset after reopening Unity for the first time
Repro steps:
1. Open "JSON Asset Serialization Test" project
2. Open "Default" scene
3. In the Windows menu open "Serializable Asset" window
4. Drag and drop the image from "Resources" folder to "Serializable Asset" window
5. Close the "Serializable Asset" window
6. Enter playmode
7. Observe that image appears on the plane
8. Close Unity
9. Re-open the "JSON Asset Serialization Test" project in Unity.
10. Enter playmode
11. Observe that no image is displayed on the plane
11. Open the "Serializable Asset" window
12. Observe that there is no image
-Image does not disappear after opening the project the second time and setting the image in Serializable Asset window once again.
Actual behavior: SerializedAssetLoader.LoadAsset() fails to load serialized asset after reopening Unity for the first time.
Expected behavior: Image set in Serializable Asset window stays when reopening the project for the first time.
Reproduced on: 5.3.6p2, 5.4.0f3, 5.5.0a5
---
Solution: UnityEngine.JsonUtility cannot be used to serialize object references in a stable way. As a workaround (only for Editor) replace UnityEngine.JsonUtility with UnityEditor.EditorJsonUtility.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Project Browser Icons use the wrong Theme and Users are not shown any indication that process will be deferred when switching Editor Theme in Play Mode
- Streaming is misspelled as "Steaming" in "Enable GPU Streaming" and "Enable Disk Streaming" tooltpis
- "IndexOutOfRangeException" thrown when moving caret left at start of TMP Input Field with rich text
- UIElements memory allocations grow when interacting with IMGUI custom Editor window
- AI Navigation Preferences are not indexed for Search and cannot be found when searching for them in the Preferences Search field
Add comment