I am trying to write an editor plugin that will draw a custom grid over the editor viewport. As per a previous question, I am basing this off of the code in tilemap_editor_plugin.cpp. I have gotten to the code below, but the forward_draw_over_viewport function never get's called. The naming of this function isn't quite the same as in the cpp class, so I may be overriding the wrong function. However, the other functions within EditorPlugin don't seem to implement this functionality. Am I looking in the wrong place, or do I need to do something else to trigger the update?
overlay.draw_line(Vector2(), Vector2(1000, 10000), Color(1, 0, 0), 1.0, true)
Thankyou in advance for any other help you can give.