Draw Path on floor

Hey guys, is it possible to get the path of astar. What I want is to connect a button with a door visually for the users. So he can follow the lines on the floor to see which button should open the door.
Has anybody done things like that using this pathing tool? How can I achieve the best looking graphs, e.g. having them in the middle of the room and not follow the walls?

It would be super if i could get the path in EditorMode so i can bake the drawn path into my scene without having performace issues.

Any hint would be nice
Thank you guys!

Greets Andi

Hi

If you have the pro version you can take a look at the Path Types demo which draws a path on the ground. For higher quality lines you might want to look in to a 3rd party library such as Vectrosity (https://www.assetstore.unity3d.com/en/#!/content/82) do to the line drawning.

The purpose of pathfinding is to find the shortest path from A to B, so it will necessarily follow the walls. However you can cheat a bit. If you enable erosion on the grid graph and set it to use tags instead of marking nodes as unwalkable, you can make your seeker have higher penalties for moving closer to the wall than further away from them. See http://arongranberg.com/astar/docs/class_pathfinding_1_1_grid_graph.php#af156f09628f08d32091ea67e48e42b71