Skip to content

NavGrid Apply Tile Cost Profile

Applies tile costs from a Tile Cost Profile asset (direct tile mappings plus optional name rules/defaults).

Parameter Description
NavGrid NavGrid to modify.
Tilemap Tilemap to scan.
Tile Cost Profile Profile defining tile and name-based cost rules.
Only Walkable If true, only writes cost on walkable cells.
Write Mode How to combine with existing cost (Set, Add, Max, Min).

Example

  1. Create a Tile Cost Profile with terrain rules.
  2. Assign the profile and target tilemap.
  3. Use Max write mode to layer costs on top of existing data.

See also