Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ProjectAuditor

The ProjectAuditor class is responsible for auditing the Unity project.
Read time 1 minuteLast updated 12 days ago

Definition

public sealed class ProjectAuditor : IPostprocessBuildWithReport, IOrderedCallback

Constructors

Constructor

Description

ProjectAuditor()ProjectAuditor default constructor

Properties

Property

Description

callbackOrderReturns the relative callback order for callbacks. Callbacks with lower values are called before ones with higher values.

Static Properties

Property

Description

KnownUnityVersionsReturns 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

AuditPerforms static analysis of the project, using the supplied analysis parameters.
AuditAsyncPerforms asynchronous static analysis of the project, using the supplied analysis parameters. Provide a callback to the
OnCompleted
Action in analysisParams to obtain the Report when analysis is completed.
OnPostprocessBuildCallback 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.