Project Auditor settings reference
Reference for the Preferences and Project Settings window.
Read time 4 minutesLast updated 8 days ago
You can configure Project Auditor in the following places in the Unity Editor:
- Preferences window: Set the preferences for your individual workspace.
- Project settings: Configure settings globally for the project.
Preferences reference
To open the Project Auditor Preferences go to Edit > Preferences (macOS: Unity > Settings), and then select Analysis > Project Auditor. The following preferences are available:
Analysis
Configure how Project Auditor performs analysis of your project.
Setting | Description |
|---|---|
| Project Areas | Sets the project areas to include in the analysis. Choose from Code, Project Settings, Assets, Shaders, and Game Objects. This setting is set to All by default. This setting also appears on the Optimization and Upgrade tabs of the Home page in the Project Auditor window. |
| Platform | Sets the target platform for analysis from a list of all the currently supported platform modules included in your installed Unity Editor. By default, Project Auditor uses the platform that's targeted in the Build Profiles window. This setting also appears on the Home page in the Project Auditor window. |
| Code Analysis Areas | Sets which code to compile for code analysis. This setting is set to Player by default. Choose from the following options:
This setting also appears on the Home page in the Project Auditor window. This setting is available only when Project Areas includes Code. |
| Log timing information | Enable to log information to the Console about how long each analyzer took to run. |
Build
Options to configure how Project Auditor interacts with the build process in your project.
Setting | Description |
|---|---|
| Log number of issues after Build | Enable to log the number of issues that Project Auditor finds to the Console. |
| Log Issues as Errors | Only available if the Log number of issues after Build setting is enabled. Enable to log any issues that Project Auditor finds as errors. |
Report
Configure how Project Auditor handles the reports it generates.
Setting | Description |
|---|---|
| Prettify saved .projectauditor files | Enable to format project reports to make them easier to read. Disabling this setting reduces the file size of reports. |
Project settings reference
To open the Project Settings window, go to Edit > Project Settings > Project Auditor.
Diagnostic parameters
You can set the threshold at which Project Auditor creates an issue for each of the following items, for each platform available in your project. Select a platform tab to set the thresholds for that platform.
Setting | Description |
|---|---|
| Streaming Audio Clip Threshold (Bytes) | Creates an issue if a streaming Audio Clip is larger than this value in bytes. |
| Decompressed Audio Clip Threshold (Bytes) | Creates an issue if a decompressed Audio Clip is larger than this value in bytes. |
| Compressed Audio Clip Threshold (Bytes) | Creates an issue if a compressed Audio Clip is larger than this value in bytes. |
| Load in Background Audio Clip Threshold (Bytes) | Creates an issue if a load in background Audio Clip is larger than this value in bytes. |
| Maximum non-streaming Texture size (pixels) | Creates an issue if a Texture is larger than this value in pixels. |
| Empty Sprite Atlas use threshold (percentage, set to 100 to disable analysis) | Warns if the percentage of unused pixels in a Sprite Atlas is greater than this value. Set to 100 to disable Sprite Atlas analysis. |
| StreamingAssets folder size limit (MB) | Creates an issue if the StreamingAssets folder is larger than this value in MB. Applies to mobile devices only. |
Suppressed issues
Setting | Description |
|---|---|
| Suppressed Issues | Sets the issue types that Project Auditor excludes from analysis. Enter a list of issue IDs, separated by commas, semicolons, or spaces. Select Manage to search for and add issue IDs from the list of known issue types. Manage is available only when the Project Auditor window is open. You can also add an issue type to this list with the Suppress Issue Type button in the Project Auditor window. For more information, refer to Issue actions. |