The import worker process controls, in the Project Settings window. In the Asset Pipeline settings, there are three settings that allow you to control the behaviour of the import worker processes. It also ensures that your import results are always consistent, and that the Editor always uses cached artifacts instead of unnecessarily reimporting your assets. Following these rules helps your importer code avoid parallel threading issues. For example, if you modify a static variable on a C# class during import on a worker thread, that modification is not automatically visible to code running on the Editor’s main thread.Īny code that you write for importing should always be self-contained, deterministic, and shouldn’t change the context it’s running in (for example, it shouldn’t change the Editor settings or create new assets on disk). Side effects that run on separate processes can cause unexpected problems. These are:īecause parallel imports operate on separate processes, any side effects of your scripted importer code also take effect in that process rather than the main Editor process. Some Asset Database API methods also respect this setting, if you use them to import, refresh, or create Texture or Model assets. Other types of asset are always imported sequentially during an asset database refresh. More info See in Glossary types imported by the Model Importer Model file A file containing a 3D data, which may include definitions for meshes, bones, animation, materials and textures. Image file types imported by the Texture Importer.The specific types of asset which Unity can import in parallel are: It applies only when the Editor is performing its standard asset database refresh, which occurs when it detects new or modified assets in the Project folder and automatically imports them. Unity’s Parallel Import feature supports only certain types of asset. The Parallel Import option in the Project Settings window. To enable parallel importing, go to Edit > Project Settings > Editor, then under the Asset Pipeline section, enable the Parallel Import checkbox. Parallel importing uses multiple processes to import assets simultaneously, which is faster than the default sequential method of importing. However, Unity also supports parallel importing for some types of asset. By default, Unity imports assets one after another sequentially on the main Editor process.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |