Select your preferred scripting language. All code snippets will be displayed in this language.
struct in UnityEngine.AI
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
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
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.
|agentClimb||The maximum vertical step size an agent can take.|
|agentHeight||The height of the agent for baking in world units.|
|agentRadius||The radius of the agent for baking in world units.|
|agentSlope||The maximum slope angle which is walkable (angle in degrees).|
|agentTypeID||The agent type ID the NavMesh will be baked for.|
|minRegionArea||The approximate minimum area of individual NavMesh regions.|
|overrideTileSize||Enables overriding the default tile size. See Also: tileSize.|
|overrideVoxelSize||Enables overriding the default voxel size. See Also: voxelSize.|
|tileSize||Sets the tile size in voxel units.|
|voxelSize||Sets the voxel size in world length units.|
|ValidationReport||Validates the properties of NavMeshBuildSettings.|
Did you find this page useful? Please give it a rating: