MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / has_method

Method has_method

core/object/object.cpp:712–732  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

710}
711
712bool Object::has_method(const StringName &p_method) const {
713 if (p_method == CoreStringName(free_)) {
714 return true;
715 }
716
717 if (script_instance && script_instance->has_method(p_method)) {
718 return true;
719 }
720
721 MethodBind *method = ClassDB::get_method(get_class_name(), p_method);
722 if (method != nullptr) {
723 return true;
724 }
725
726 const Script *scr = Object::cast_to<Script>(this);
727 if (scr != nullptr) {
728 return scr->has_static_method(p_method);
729 }
730
731 return false;
732}
733
734int Object::_get_method_argument_count_bind(const StringName &p_method) const {
735 return get_method_argument_count(p_method);

Callers 15

SceneDebuggerTreeMethod · 0.45
_write_nodeMethod · 0.45
_edit_currentMethod · 0.45
process_messageMethod · 0.45
_toggle_visibleMethod · 0.45
_update_nodeMethod · 0.45

Calls 1

has_static_methodMethod · 0.45

Tested by 6

make_custom_tooltipMethod · 0.36
_notificationMethod · 0.36
_move_elementMethod · 0.36
update_treeMethod · 0.36
_prepare_historyMethod · 0.36