NavMeshBuildSettings

struct in UnityEngine.AI

Cambiar al Manual

Descripción

The NavMeshBuildSettings struct allows you to specify a collection of settings which describe the dimensions and limitations of a particular agent type.

You might want to define multiple NavMeshBuildSettings if your game involves characters with large differences in height, width or climbing ability.

You can also use this struct to control the precision and granularity of the build process, by setting the voxel and tile sizes. Some of the values are coupled, meaning there are constraints on the values based on other values. For example, it’s not valid for agentClimb to be larger than agentHeight. To help diagnose violations of these rules, a special method ValidationReport can be evaluated.

Variables

agentClimbThe maximum vertical step size an agent can take.
agentHeightThe height of the agent for baking in world units.
agentRadiusThe radius of the agent for baking in world units.
agentSlopeThe maximum slope angle which is walkable (angle in degrees).
agentTypeIDThe agent type ID the NavMesh will be baked for.
debugOptions for collecting debug data during the build process.
minRegionAreaThe approximate minimum area of individual NavMesh regions.
overrideTileSizeEnables overriding the default tile size. See Also: tileSize.
overrideVoxelSizeEnables overriding the default voxel size. See Also: voxelSize.
tileSizeSets the tile size in voxel units.
voxelSizeSets the voxel size in world length units.

Funciones Públicas

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