Tag: Serialization
All the articles with the tag "Serialization".
IsConnected Is Looking at Connecting
A tutorial that shows the whole thing, from a signaling server to sending a camera feed. But IsConnected compares against Connecting, so the Disconnect button dies the moment the connection is actually established. RemoveTrack and OnNegotiationNeeded each have a hole too.
Installing Newtonsoft Json: The Version Field Is Meant to Be Empty
Following an install guide for com.unity.nuget.newtonsoft-json, the version field stopped me. Typing 3.0.1 and then hitting Update is two steps you don't need — and 3.0.1 happens to predate the IL2CPP fixes.
[MenuItem] Belongs in an Editor Folder, and a MonoBehaviour Can't Go There
I checked a 2021 round-up of eighteen attributes against the current docs. Most of it holds, but one example asks for two incompatible things, one is something the docs tell you not to use, and one guards less than it looks like it does.
Unity's JsonUtility: The Limits Come From the Serializer, Not From JSON
Rather than memorising JsonUtility's list of limitations, one rule predicts them: if it isn't visible in the Inspector, it isn't in the JSON. Plus the most dangerous item, which the manual never mentions — polymorphism.