Dead characters obstructing the path

When the characters in my game die, their bodies are still on the ground. I noticed that other characters seem to not want to walk on places where those bodies are. When a character dies in my game, I change the layer so is there a way to exclude certain layers from obstructing the path.

I am using the AIPath movement script on the Grid graph.


I solved this after reading the documentation and realized that it was not an issue with the pathfinding but just the movement. I just had to change my layer settings in the Physics section to make those layers not interact with each other.