Enums are one of C#’s basic data types and represent a set of named integer constants, e.g. attack types or player states. The unity inspector supports enums out of the box, so the previous enum would look like this. We can select exactly one of all possible options. But what if we want to select more…
Posts Tagged
csharp
Serialization – Saving Objects as Files
Unity’s often used built in form of serialization are the PlayerPrefs. As Lars Kokemohr, the Head of Programming at the School4Games, points out in this Facebook post: The are a lot of drawbacks to saving data using Unity’s PlayerPrefs class. Furthermore he advises that A cleaner way of doing it would be to create a…