diff --git a/core/object.cpp b/core/object.cpp index dc3d5319279..68b3f700cc4 100644 --- a/core/object.cpp +++ b/core/object.cpp @@ -1152,6 +1152,15 @@ void Object::emit_signal(const StringName& p_name,const Variant** p_args,int p_a Signal *s = signal_map.getptr(p_name); if (!s) { +#ifdef DEBUG_ENABLED + bool signal_is_valid = ObjectTypeDB::has_signal(get_type_name(),p_name); + //check in script + if (!signal_is_valid && !script.is_null() && !Ref