Version: 1.8
LanguageEnglish
  • C#

AssetDatabase.DesiredBuildWorkerCount

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 int DesiredBuildWorkerCount;

Description

This property controls how many subprocesses will be spawned when building AssetBundles using the multi-process building feature. The optimal number of workers depends on available system memory and the memory requirements of your specific project during the build process.

Recommended Worker Count = (Available System Memory - System Reserved Memory) / Memory Per AssetBundle Build Process - 1 (reserved for main process)

Setting this value too high may cause memory exhaustion and system instability, while setting it too low may underutilize available CPU cores and result in longer build times.

Note: This setting only affects multi-process AssetBundle building on Windows platforms. Other platforms will use single-process building regardless of this setting.