GridGraph with TextureData

I can’t find an example of using TextureData for a GridGraph. There are properties and methods but no concrete instructions. Could you please point me in the right direction?

  • Using color for walkable and search penalties would be ideal.



You can do this via the grid graph inspector. In the beta version it’s exposed as a Grid Graph Rule, while in the non-beta you can find it under the extra foldout at the bottom. See also RuleTexture - A* Pathfinding Project