Version: Unity 6.4 Alpha (6000.4)
LanguageEnglish
  • C#

ModuleAnalyzer.Initialize

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public void Initialize(Action<Descriptor> registerDescriptor);

Parameters

Parameter Description
registerDescriptor An Action which the method can invoke to register an Issue Descriptor for later reporting

Description

Initializes the Analyzer

Modules and their associated Analyzers are Initialized during the process of constructing the ProjectAuditor object. The primary purpose of the Initialize method is to register Descriptors for any Issues which the Analyzer can add to the report. Descriptors must be registered before they can be used to create Issues. However, other initialization is allowed within this method if required - perhaps constructing and/or caching data structures to optimize the Analyze() methods, which may be called many times during analysis.