Tagging procedual generated DungeonTiles


I have a procedural generated Dungeon consisting of many square tiles. So far the Grid works fine if i´m updating it after creating the dungeon.s

Is it also possible to tag the Tiles in this case?


Do you mean tag the nodes in the tiles in the same sense that this documentation page uses tags? http://arongranberg.com/astar/docs/tags.php

Hi Aron,

yes exactly. I want to restrict some Tiletypes and give penalties to others …


You should be able to use normal graph updates to set the tags. The only thing you would need to do is to figure out the bounding box of your tiles.

Potentially you could even use a GraphUpdateScene component on the dungeon tile prefab, though I personally I think doing it by code is easier in this case.
See this page https://arongranberg.com/astar/docs/graph-updates.php for how to do the updates using code.

Ah ok, i will try this.

Thank you very much for your help!

1 Like