+1 vote

Hi, I'm trying to make a simple game in godot using tilemaps and pathfinding. The thing is, I have a tilemap with very similar tiles that only differ in the navigation polygons they have. So I have no way to tell them apart once I start making a level(because the navigation polygon is not visible outside the tile map scene).
I wanted to know if there's some equivalent of unity's onDrawGizmos() to draw the navigation polygons in the editor so it's easier for me to edit the map.


in Engine by (23 points)

1 Answer

0 votes
Best answer

Never mind, I solved it by adding collisionshapes to non-walkable tiles instead of modifying the navigation polygon(would be cool if there was a way to draw gizmos anyway)

by (23 points)

For anyone coming from google: There is indeed way to draw in editor, you need to use tool mode. Short: just add tool keyword to top of your script, now your script will be always executed inside editor. Google godot tool mode for more info.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.