Version: Unity 6.3 LTS (6000.3)
LanguageEnglish
  • C#

EditorUserSettings.artifactGarbageCollection

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

public static bool artifactGarbageCollection;

Description

Control whether artifact garbage collection is performed when the Editor starts up.

By default, when you start the Editor, Unity removes unused artifact files in the Library folder, and removes their entries in the Asset Database. This is a form of garbage collection. This setting allows you to turn off the Asset Database garbage collection, so that previous artifact revisions which are no longer used are still preserved after restarting the Editor. This is useful if you need to debug unexpected import results.