diff --git a/util.gd b/util.gd index 5e04403..413f0b4 100644 --- a/util.gd +++ b/util.gd @@ -26,7 +26,10 @@ static func bbcode_strip(p_text: String) -> String: static func get_method_info(p_callable: Callable) -> Dictionary: var method_info: Dictionary var method_list: Array[Dictionary] - method_list = p_callable.get_object().get_method_list() + if p_callable.get_object() is GDScript: + method_list = p_callable.get_object().get_script_method_list() + else: + method_list = p_callable.get_object().get_method_list() for m in method_list: if m.name == p_callable.get_method(): method_info = m