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
- Create a Tile Cost Profile with terrain rules.
- Assign the profile and target tilemap.
- Use
Maxwrite mode to layer costs on top of existing data.