Hey there,
In my game I don't allow the player to move around freely, but I still have a navmesh for when I need to do some Move To Point cutscene action. I recently switched to Unity2D mode and I'm having some trouble recreating the functionality with the polygon collider.
In TopDown mode I used to have a navmesh segment where I unchecked the mesh collider component. This gave the characters a navmesh to pathfind across while blocking any player clicks on said navmesh. But if I do the same with the polygon collider, instead of pathfinding to the marker they are supposed to move to, they move to the edge of the collider shape and follow along the outside. If I enable the polygon collider component again it works fine, but obviously this also enables player input on the navmesh.
Is there another way to block clicks on the navmesh?
Comments