mirror of
https://github.com/godotengine/godot.git
synced 2026-02-07 19:32:36 +00:00
Hide signals prefixed by underscore
This commit is contained in:
@@ -1182,6 +1182,10 @@ Dictionary GDExtensionAPIDump::generate_extension_api(bool p_include_docs) {
|
||||
List<MethodInfo> signal_list;
|
||||
ClassDB::get_signal_list(class_name, &signal_list, true);
|
||||
for (const MethodInfo &F : signal_list) {
|
||||
if (F.name.begins_with("_")) {
|
||||
continue; // Hidden signal.
|
||||
}
|
||||
|
||||
StringName signal_name = F.name;
|
||||
Dictionary d2;
|
||||
d2["name"] = String(signal_name);
|
||||
|
||||
Reference in New Issue
Block a user