h8man / NavMeshPlus

Unity NavMesh 2D Pathfinding
MIT License
1.76k stars 205 forks source link

[Bug] NavigationModifierTilemap missing AffectedAgents field #186

Closed snarlynarwhal closed 6 months ago

snarlynarwhal commented 6 months ago

Hi, I have a tilemap and want to override certain tilemap tiles for different agents. I want to override Rock tiles to be not walkable for Walking Agents. But since NavigationModifierTilemap doesn't contain an AffectedAgents field, both NagivationModifiers collect sources from NavigationModifierTilemap.

image

snarlynarwhal commented 6 months ago

I made a PR:

https://github.com/h8man/NavMeshPlus/pull/187/commits/1a4564a6f765b84b97f65a91767acac386bf73d2

Let me know how it looks and if you have any feedback.

h8man commented 6 months ago

Thank you. I appreciate any help.

Code seems to be straight forward. Thanks again.