NavGrid Build From Tilemaps
Builds a NavGrid from Floor and Walls tilemaps.
Walkable cells are where a floor tile exists and no wall tile exists.
| Parameter | Description |
|---|---|
| Floor | Floor tilemap to scan for walkable area. |
| Walls | Wall tilemap to scan for blocked cells. |
| Bounds | Optional cell bounds to scan. If empty, uses overlap of both tilemap bounds. |
| Write Zero Cost Array | If true, initializes a Cost array with 0 for each cell. |
| Store NavGrid | NavGrid asset to fill. If empty, a runtime NavGrid is created. |
Example
- Set Floor and Walls tilemaps.
- Leave Bounds empty to use shared tilemap area.
- Store the result in a NavGrid variable.
- Use that grid in NavGrid Find Path.