# ProjectAuditor

> The ProjectAuditor class is responsible for auditing the Unity project.

## Definition

* **Type:** Class
* **Namespace:** [Unity.ProjectAuditor.Editor](/engine/6000.7/script-reference/unity/projectauditor/editor.md)
* **Assembly:** UnityEditor
* **Implements:** [IPostprocessBuildWithReport](/engine/6000.7/script-reference/unityeditor/build/ipostprocessbuildwithreport.md), [IOrderedCallback](/engine/6000.7/script-reference/unityeditor/build/iorderedcallback.md)

```csharp
public sealed class ProjectAuditor : IPostprocessBuildWithReport, IOrderedCallback
```

## Constructors

| Constructor                                                                                            | Description                        |
| ------------------------------------------------------------------------------------------------------ | ---------------------------------- |
| [ProjectAuditor()](/engine/6000.7/script-reference/unity/projectauditor/editor/projectauditor/ctor.md) | ProjectAuditor default constructor |

## Properties

| Property                                                                                                     | Description                                                                                                               |
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------- |
| [callbackOrder](/engine/6000.7/script-reference/unity/projectauditor/editor/projectauditor/callbackorder.md) | Returns the relative callback order for callbacks. Callbacks with lower values are called before ones with higher values. |

## Static Properties

| Property                                                                                                               | Description                                                                                                                 |
| ---------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| [KnownUnityVersions](/engine/6000.7/script-reference/unity/projectauditor/editor/projectauditor/knownunityversions.md) | Returns a list of Unity versions that is known to Project Auditor. It is based on the content in the Obsolete API Database. |

## Methods

| Method                                                                                                                 | Description                                                                                                                                                                                                                                                                              |
| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Audit](/engine/6000.7/script-reference/unity/projectauditor/editor/projectauditor/audit.md)                           | Performs static analysis of the project, using the supplied analysis parameters.                                                                                                                                                                                                         |
| [AuditAsync](/engine/6000.7/script-reference/unity/projectauditor/editor/projectauditor/auditasync.md)                 | Performs asynchronous static analysis of the project, using the supplied analysis parameters. Provide a callback to the `OnCompleted` Action in analysisParams to obtain the [Report](/engine/6000.7/script-reference/unity/projectauditor/editor/report.md) when analysis is completed. |
| [OnPostprocessBuild](/engine/6000.7/script-reference/unity/projectauditor/editor/projectauditor/onpostprocessbuild.md) | Callback function which is called after a build is completed. If UserPreferences.AnalyzeAfterBuild is true, performs a full audit and logs the number of issues found.                                                                                                                   |
