0 votes

Tileset has a method for setting the navigation polygon on a tile:


but seems to have no way to remove it afterwards. I've tried setting the instance to an empty NavigationPolygon, but that just crashes the the editor when you try and view it.

Short of removing the tile and re-creating it again without the NavigationPolygon, I can't see anyway of doing this, yet the godot editor lets you delete navigation data off a tile, so presumably there is a way of doing it?

in Engine by (41 points)

1 Answer

0 votes
Best answer

As invariably happens, I found the answer just after asking the question :P

For reference for anyone else, you can pass null as the second parameter to tile_set_navigation_polygon and this will clear the navigation data without causing any errors.

by (41 points)
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 Frequently asked questions and 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 [email protected] with your username.