Tag: Data
All the articles with the tag "Data".
What's in LocalLow Is persistentDataPath, Not dataPath
Clipped to pin down the exact path, since I'd been writing JSON saves to dataPath. It lays out where dynamically created files go. But the descriptions of dataPath and persistentDataPath are swapped. There are five path members, not three, and a relative path is relative to neither of them.
PlayerPrefs' Path Is Assembled from Company Name and Product Name
A short post listing the storage paths — but the real point is that the path is assembled from two Player Settings fields. Change either one and PlayerPrefs can no longer read what you saved.
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.
Play Time Is a TimeSpan, Not a DateTime
I clipped a current-time utility while trying to put a time-attack run timer on screen, but the type I needed wasn't that one. The type for elapsed time, the clock to read, and the format string rules are all different.