Table of Contents

Class ProjectCleaner

Namespace
CodeStage.Maintainer.Cleaner
Assembly
Build.dll

Allows to find and clean garbage in your Unity project. See readme for details.

public static class ProjectCleaner
Inheritance
object
ProjectCleaner

Methods

SearchAndCleanAndReport(bool)

Starts garbage search, cleans what was found with optional confirmation and generates report to let you know what were cleaned up.

public static string SearchAndCleanAndReport(bool showConfirmation = true)

Parameters

showConfirmation bool

Enables or disables confirmation dialog about cleaning up found stuff.

Returns

string

Project Cleaner report about removed items.

SearchAndReport()

Starts garbage search and generates report.

public static string SearchAndReport()

Returns

string

Project Cleaner report, similar to the exported report from the Maintainer window.

StartClean(CleanerRecord[], bool, bool)

Starts clean of the garbage found with StartSearch() method.

public static CleanerRecord[] StartClean(CleanerRecord[] recordsToClean = null, bool showResults = true, bool showConfirmation = true)

Parameters

recordsToClean CleanerRecord[]

Pass records you wish to clean here or leave null to let it load last search results.

showResults bool

Shows results in the Maintainer window if true.

showConfirmation bool

Shows confirmation dialog before performing cleanup if true.

Returns

CleanerRecord[]

Array of CleanRecords which were cleaned up.

StartSearch(bool)

Starts garbage search with current settings.

public static CleanerRecord[] StartSearch(bool showResults)

Parameters

showResults bool

Shows results in Maintainer window if true.

Returns

CleanerRecord[]

Array of CleanerRecords in case you wish to manually iterate over them and make custom report.