By default, Unity imports assets one after another sequentially in the main Unity Editor process. However, you can use the Parallel Import setting to import certain texture and model filesA file containing a 3D data, which may include definitions for meshes, bones, animation, materials and textures. More info
See in Glossary out of the Editor process. The Parallel Import setting uses additional headless instances of the Editor, called import workers, to import assets in parallel, which is faster than the default sequential method of importing.
The Parallel Import setting supports only certain types of asset. The specific types of asset which Unity can import out of process are as follows:
TextureImporter.ModelImporter.AudioImporter.VideoClipImporter.Other types of asset are always imported sequentially during an Asset Database refresh.
Some Asset Database API methods also respect this setting if you use them to import, refresh, or create texture or model assets. These are:
To enable out of process importing:
Out of process importing only happens when the Editor performs a standard Asset Database refresh, which happens when it detects new or modified assets in the Project folder and automatically imports them.
Out of process importing operates in a separate worker process instead of the main Editor process. Any AssetPostprocessor instances that handle imports for the supported file types take effect in the worker instance rather than in the main Editor process.
Because of this, any code you write for post processors must be self-contained, deterministic, and must not change the context it’s running in. For example, don’t use an AssetPostprocessor to change the Editor settings or create new assets on disk. Following these rules ensures that import results are always consistent.
You can use the Asset Pipeline Project settings to control the behavior of the import worker processes. These settings are project-specific.
You can also control the default values for the Desired Import Worker Count for new projects in the Settings window. To do this, go to Settings > Asset Pipeline > Import Worker Count %.
When you create a new project, Unity uses the Import Worker Count % value to assign your project’s Desired Import Worker Count value to the percentage of the number of logical cores available on your system.
For example, if your system has 16 logical cores and the preference is set to 25%, the Desired Import Worker Count for new projects is 4. If you set this value too high, the import worker processes need to compete over other processes and system resources such as reading and writing files. The default value is 25% which suits most situations.