Vixen
02b45cc4
csharp
public record class NavMeshImportSettings

How 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 Version

    The importer's own version. Bumping it invalidates every artefact that importer produced.

  • public float CellSize

    The width and depth of one voxel column, in world units.

  • public float CellHeight

    The height of one voxel.

  • public float AgentHeight

    How tall the agent is.

  • public float AgentRadius

    How wide the agent is.

  • public float AgentMaxClimb

    The tallest step it can walk up.

  • public float AgentMaxSlope

    The steepest ground it can stand on, in degrees.

  • public int MinRegionArea

    The smallest region to keep, in voxel columns.

  • public int MergeRegionArea

    The size below which a region is absorbed into a neighbour, in voxel columns.

  • public NavMeshPartitioning Partitioning

    How the walkable surface is cut into regions.

  • public float MaxSimplificationError

    How far a simplified contour may stray from the voxel outline, in voxels.

  • public float MaxEdgeLength

    The longest wall edge to leave unsplit, in world units.

  • public float DetailSampleDistance

    How far apart to sample the ground inside a polygon, in world units.

  • public float DetailSampleMaxError

    How far the flat polygon may be from the ground before a vertex is added, in world units.

  • public int TileSize

    How 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