Version: 2023.2
public uint maxJobWorkers ;

描述

The maximum number of worker threads that the build process can utilize when building a NavMesh with these settings.

A value between 1 and JobsUtility.JobWorkerCount (inclusive) causes the build process to schedule all of the work within that number of jobs when building a NavMesh. Each job computes as many NavMesh tiles as it can grab, after it has finished computing the previous tiles.
A value of 0 or higher than JobsUtility.JobWorkerCount causes the build process to use all of the available worker threads. In this case, it computes each tile in its own separate job. The build process also computes each tile in a separate job when the number of tiles that need computing is less than the number of worker threads.

The default value is 0.

See Also: tileSize.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961