public record class NavMeshImportSettingsHow a navmesh asset is baked.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The bake parameters are settings rather than content, which is the split the pipeline already makes everywhere else: the .vxnavmesh file says which geometry the mesh is for, and the .meta beside it says how finely and for what agent — so a project can bake the same level coarser on a phone through the per-target overrides the meta format already has, without a second asset.
Every value is also a cache key input, because the settings hash is part of the artefact key. Turning the cell size down re-imports; changing nothing does not.
Fields and properties (15)
public int VersionThe importer's own version. Bumping it invalidates every artefact that importer produced.
public float CellSizeThe width and depth of one voxel column, in world units.
public float CellHeightThe height of one voxel.
public float AgentHeightHow tall the agent is.
public float AgentRadiusHow wide the agent is.
public float AgentMaxClimbThe tallest step it can walk up.
public float AgentMaxSlopeThe steepest ground it can stand on, in degrees.
public int MinRegionAreaThe smallest region to keep, in voxel columns.
public int MergeRegionAreaThe size below which a region is absorbed into a neighbour, in voxel columns.
public NavMeshPartitioning PartitioningHow the walkable surface is cut into regions.
public float MaxSimplificationErrorHow far a simplified contour may stray from the voxel outline, in voxels.
public float MaxEdgeLengthThe longest wall edge to leave unsplit, in world units.
public float DetailSampleDistanceHow far apart to sample the ground inside a polygon, in world units.
public float DetailSampleMaxErrorHow far the flat polygon may be from the ground before a vertex is added, in world units.
public int TileSizeHow wide a tile is, in voxels, or zero for one tile covering everything.
Used by (3)
- NavMeshImporterVixen.Editor.Assets
- NavMeshImporterTestsVixen.Editor.Assets.Tests
- TypeRegistrationVixen.Editor.Assets