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
# This function will not show up, because it is prefixed with an underscore
func _bar():
return 1337
If this does not generate things, then users will be unable to generate documentation about virtual methods that are intentionally prefixed with an underscore and are meant to be overridden by subsequent users. Here is a possible example of using an exclamation point in such a case:
# base_item.gd
extends Resource
class_name BaseItem
#! When using our API to trigger an item, the plugin will automatically call this method
#! on the selected item.
func _use() -> void:
pass
The text was updated successfully, but these errors were encountered:
Not only virtual methods, but it would require massive refactoring of some projects. The underscore prefix has been advocated as a privacy indicator. "Don't call or use this." My studio is sitting on thousands of lines of code formatted this way.
If this does not generate things, then users will be unable to generate documentation about virtual methods that are intentionally prefixed with an underscore and are meant to be overridden by subsequent users. Here is a possible example of using an exclamation point in such a case:
The text was updated successfully, but these errors were encountered: