i am generating a tilemap with solid behavior at runtime. after that i put a player and enemy at random positions. the enemy got the pathfinding behavior and starts to move towards the player right after the game started. but its path is always a straight line ignoring all obstacles. therefore i added an "regenerate obstacle map" right after the tilemap was generated. unfortunatelly it changed nothing, the enemy is still ignoring the obstacles.
BUT if i put a System.wait right after the "regenerate obstacle map" it worked fine. So that means regenerating the map takes a while and not just 1 tick as statet in the manual.
So my question is: Is there an event like "On obstacle map finished"? I was not able to find it. Or maybe i am using a wrong approach, how did you handle that problem in your projects?