Search Issue Tracker
Won't Fix
Votes
0
Found in
5.5.1f1
Issue ID
899213
Regression
No
ISerializationCallbackReceiver example
The example sritp on this page: https://docs.unity3d.com/2017.1/Documentation/ScriptReference/ISerializationCallbackReceiver.html
https://docs.unity3d.com/ScriptReference/ISerializationCallbackReceiver.html
should be changed
from:
public List<int> _keys = new List<int> { 3, 4, 5 };
public List<string> _values = new List<string> { "I", "Love", "Unity" };
//Unity doesn't know how to serialize a Dictionary
public Dictionary<int, string> _myDictionary = new Dictionary<int, string>();
to:
public List<int> _keys = new List<int>();
public List<string> _values = new List<string>();
//Unity doesn't know how to serialize a Dictionary
public Dictionary<int, string> _myDictionary = new Dictionary<int, string>{ { 3, "I" }, { 4, "Love" }, { 5, "Unity" } };
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
- “Frame Debugger On” text color not maintained across different Editor Themes in toolbar
- Rendering artefacts appear in the Game view window when maximizing/minimizing Inspector window and Frame Debugger is Enabled
- Threads dropdown in the Profiler is not scrollable even when not all options in the list are visible
- Memory leak when a lot of Particle Systems instantiated while Profiler is open
- "ArgumentOutOfRangeException" error is thrown when trying to delete letters from an RTL TextField when using the Advanced Text Generator
Resolution Note:
Resolving and Closing ("won't fix") as part of the big docs bug amnesty (Jan 2018). Due to limited resources we are drawing a line under these older bugs and we are now focusing our work on the newer incoming bugs from the docs web site feedback system.