Summary

An updated Save System for Unity using simple AES encryption/obfuscation. I had previously implemented a BinaryFormatter but that turned out to be vulnerable to Insecure Deserialisation attacks so this is the updated version.

Allows for encryption and storage of a wide array of data. So long as it can be serialised, it can be saved!
Though it’s not covered in the video, the code also contains things like a custom SetPref/GetPref system, support for multiple files with different data structures, and is just generally very cool!

Continue reading

Summary

A Sound Player for Unity that can be called from anywhere once placed in the scene. Especially useful for UI sounds and such, but pretty versatile beyond that as it contains settings for multiple different types of sounds (effects, dialogue, etc) and is easily expandable.

It even has some use in 3D gaming as the GetVolume aspects are still static functions. Meaning any AudioSource can modify its volume, accordingly.

Continue reading