5

Persistence and Accessibility

This chapter considers the distinct but related issues of persistence and accessibility in Unity. Persistence is about how data, like variables and objects, remain over time, not just between scenes, but also across play sessions. That is, across days and weeks, and months, even after the user has quit your game and returned to it much later. It’s about how you can keep objects like save-games in external files. Second, the chapter also considers accessibility. By “accessibility,” I mean the ways you can scope objects in code, making it easier and simpler for separate game objects to communicate and share data efficiently between scenes. The tips and techniques covered here are important if you’re making games ...

Get How to Cheat in Unity 5 now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.