Resources folder and external files

Your games will frequently rely on external data loaded from files such as XML files, perhaps, for subtitles, localization, or level serialization. Have a look at the following screenshot:

Resources folder and external files

Printing a message loaded from an external text file asset that will compile with the project

In these cases, you want a specific range of abilities. The first one is the ability to dynamically load data from the file into memory in a way that Unity can parse and understand. The second is the ability to change and edit the file contents, even after importing it into Unity, and then have the effects of the changes update in the ...

Get Mastering Unity Scripting now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.