You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can override the name selected by default, like this: {.gdExport: "has_main_screen".}. methods are exported with _ prepended by default, because that's the convention Godot mostly follows itself. Yes, it's not always that way, and you can override it where needed. If not for this default, you'd have to do method process() {.gdExport: "_process".} everywhere, which is annoying.
I just tried passing a param as you suggested, and it doesn't work. I must be missing something because I don't see where that's happening in godotmacros.nim. I see hint and hintStr using removeStrPragma to get the value, but gdExport is using removePragma:
Example:
EditorPlugin.has_main_screen is a virtual method, but does not have an underscore.
https://docs.godotengine.org/en/stable/classes/class_editorplugin.html#class-editorplugin-method-has-main-screen
use of method on a proc assumes it's virtual
godot-nim/godot/nim/godotmacros.nim
Line 165 in 388bea9
and gdobj prepends an underscore to all method names.
godot-nim/godot/nim/godotmacros.nim
Line 608 in 388bea9
As a work around to override the virtual function you declare it as proc with gdExport like:
The text was updated successfully, but these errors were encountered: