Documentation

Unity Engine

Download Unity

Unity Engine

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 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 AreasSets 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.
PlatformSets 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 AreasSets which code to compile for code analysis. This setting is set to Player by default. Choose from the following options:
  • Player: Compiles code for analysis as it's compiled for a Player build for the specified target platform.
  • Editor: Includes Editor code assemblies in the analysis. Project Auditor analyzes the Editor assemblies that Unity has already compiled for the project, rather than compiling them again. Select this option to analyze custom Editor code.
  • Tests: Includes test assemblies in the analysis.
  • Packages: Includes the code in packages in the analysis.
  • Debug Managed Code Variant: Compiles code for analysis as the Debug managed code variant for the specified target platform. Code inside
    #if DEBUG
    ,
    #if UNITY_ENABLE_CHECKS
    , and
    #if UNITY_INCLUDE_INSTRUMENTATION
    is included in the analysis.
If you select both Player and Editor, Project Auditor analyzes both the Player and Editor assemblies, so the analysis takes longer.

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 informationEnable 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 BuildEnable to log the number of issues that Project Auditor finds to the Console.
Log Issues as ErrorsOnly 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 filesEnable 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 IssuesSets 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.

Additional resources