There are destructible and indestructible objects on the map I created with Tilemap, and I create a walkable area (bake) for my enemy object using the information I found on the internet and the Navmesh packages for 2D games. However, the problem is that after my player destroys breakable objects (Tilemap grid cell), the enemy object still perceives those areas as unwalkable. I'm wondering how I can update the navmesh for the enemy again while the game is running.
I found videos and information on how to do this in 3D games, it looks pretty simple. But I couldn't find anything for 2D games.
Note: I'm using Unity.