Skip to main content

Files, folders, and directories

note

This content describes how to format file names, folder names, and directories in documentation. For instructions on how to write file names for the Hexadocs platform, refer to File naming conventions.

Use clear and consistent formatting for files, folders, and directories to differentiate them from the rest of your text.

tip

For instructions on implementing this guidance with Markdown, refer to Confluence: Formatting documentation.

note

On the Learn platform, use bold font in lieu of monospaced until monospaced font is available on the platform.

Format file, folder and directory names

Format file names, folder names and directory paths in monospaced font.

When you refer to files, folders, and directories on the user’s system (including assets and files viewed in the Project window), make clear what the root folder is (where possible) and use backslashes to separate each folder.

Example file, folder, and directory names
Open example-file.png in the Editor.
Open the Assets folder in the Project window.
In the C:// drive, navigate to Users[YourName]\Download\UnityPackages.

Format file extensions

Write file extensions for file types in regular font. Include the preceding period.

If you need to use an indefinite article ("a" or "an"), write the one that applies to the sound of the first letter of the extension, as though the period (or dot) is not announced. You don't need to format file extensions in monospaced font.

Example file extensions
Open the .exe file to run the game.
This feature supports .jpg and .png files.
Choose an .mp3 file to upload.

File-naming conventions

Create file and folder names in accordance with Unity Asset Store: Assets Standards.

If a folder name is dependent on user input, place it inside square brackets. Use example names that are clearly examples, such as "[example-name]" or "[example-file]." Don’t use realistic names like "[night-scene]."

If a file is a document that begins with a heading or title, name the file to match that heading or title. For example: "SampleGameDesignDocument.pdf".