File Naming Conventions

Another valuable tool to have in your workflow toolbox is an understanding of how to use namespaces. Namespaces (not the scripting ones) are a means of keeping your file names simple and short and easy to read and understand at a later point in time. Not only can it become difficult for you and others to find a file if there is no structure, but it can be just as frustrating if the files do not have a clear and concise naming convention.

For example, what if we lazily named two scripts “script_1” and “script_2”? It may be easy to remember just these two, but imagine having dozens, or several hundred, of them. We’re pretty sure that if we went to bed for the night and then reopened Unity the next day, we would most likely ...

Get Learning 2D Game Development with Unity®: A Hands-On Guide to Game Creation 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.