Add has_script_method to Script for scripting access

This commit is contained in:
Chris Cranford
2026-01-20 14:47:42 -05:00
parent 78c6632eb1
commit 2a9becc70d
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -91,6 +91,13 @@
[b]Note:[/b] The dictionaries returned by this method are formatted identically to those returned by [method Object.get_signal_list].
</description>
</method>
<method name="has_script_method" qualifiers="const">
<return type="bool" />
<param index="0" name="method_name" type="StringName" />
<description>
Returns [code]true[/code] if the script, or a base class, defines a method with the given name.
</description>
</method>
<method name="has_script_signal" qualifiers="const">
<return type="bool" />
<param index="0" name="signal_name" type="StringName" />