Skip to content

NavGrid Prune Unreachable

Removes unreachable walkable cells from a NavGrid.

You can keep either the largest connected component or cells reachable from seed cells.

Parameter Description
NavGrid NavGrid to modify in place.
Reach Source Reachability mode (LargestComponent or FromSeeds).
Seed Cells Start cells for FromSeeds mode.
Neighbors Connectivity mode (FourWay or EightWay).
Min Clearance Required clearance to traverse (0 disables clearance checks).
Clear Costs And Clearance If true, also clears Cost/Clearance on pruned cells.

Example

  1. Choose Reach Source = FromSeeds.
  2. Add one or more valid Seed Cells (spawn points, hubs).
  3. Execute to strip disconnected islands from the grid.

See also