August 2018
Intermediate to advanced
794 pages
28h 4m
English
When loading/saving data either locally, it is important to keep in mind the data types that can be used. When writing C# code, our variables can be of any type permitted by the language, but when communicated by the web interface, or to a local storage using Unity's PlayerPrefs class, we are restricted in the types of data that we can work with. When using the PlayerPrefs class, we are limited to saving and loading integers, floats, and strings. We provide several recipes illustrating ways to save and load data at Run-Time, including the use of static variables, PlayerPrefs, and a public TextAsset containing text-format data for a 2D game level.
Read now
Unlock full access