Version: 5.6
public float voxelSize ;

설명

Sets the voxel size in world length units.

The NavMesh is built by first voxelizing the scene, and then figuring out walkable spaces from the voxelized representation of the scene. The voxel size controls how closely the NavMesh fits the geometry of your scene, and is defined in world units.

If you require a more detail so that the NavMesh more closely fits your Scene’s geometry, you can reduce the voxel size. An increase in detail will also cause your game to consume more memory and take more time to calculate the NavMesh data. The scaling is roughly quadratic, so doubling the resolution will result in an approximate quadrupling of the build time.

In general you should aim to have 4-6 voxels per character diameter. For example, if you have a Scene with characters that have a radius of 0.3, a good voxel size is 0.1. The default value is set to a third of the agentRadius.

Note: If you want to use this setting, you must also set overrideVoxelSize to true.