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
Not all methods of ClassDB seem to know how to handle virtual methods. See code below for examples on which work and which don't:
Steps to reproduce
print(ClassDB.class_get_method_list(&"Node")) # contains _process among other methods, like expected
print(ClassDB.class_has_method(&"Node", &"_process")) # returns false, this is a bug!# I have not tried ClassDB::get_method since it has no gdscript bindings, but in the C++ code it looks like it does not handle virtual methods either...
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered:
This is for the most part by design, although its quite weird. In the Godot ClassDB API, there is a rule where virtual methods can't be called externally, only overriden by classes inheriting it, so as they can't be called they only appear in the listing, but you can't really access them in any way.
This probably should be documented somewhere, I guess, but its not a bug.
Godot version
4.0 alpha 16
System information
Windows 10
Issue description
Not all methods of ClassDB seem to know how to handle virtual methods. See code below for examples on which work and which don't:
Steps to reproduce
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: