I’ve recorded it. On the beginning I am placing one tower … After that the path is always blocked until I’ve cancelled the placement and start the placement again.
Spawn Position = Red Light
Target Position = Cyan Light (not visible in the video)
Both places are walkable.
0:48 cancelled placement
0:50 started placement
0:57 Non blocking place found
and so on
if (GraphUpdateUtilities.UpdateGraphsNoBlock(graphUpdateObject, game.spawnLocationNode, game.targetLocationNode, true)) {
isBlockingPath = false;
Debug.Log("The Path is NOT blocked!");
} else {
isBlockingPath = true;
Debug.Log("The Path is blocked!");
}
If you want and if you have a GitLab Account, I can invite you to the project and you can debug it on your local machine.