summaryrefslogtreecommitdiffstats
path: root/doc/classes
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-07-19 14:37:06 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-07-19 14:37:06 +0200
commit566adc6025c1ae498e59c5bf10bed24bea783f57 (patch)
tree60869999d5d28851e771afc32b00048cee88050e /doc/classes
parent293c0f76463a4e1c2c2e86d8fbfc3e04f491b347 (diff)
parentf06504ca0b7a3e3445df3ab72b80808690d4c53b (diff)
downloadredot-engine-566adc6025c1ae498e59c5bf10bed24bea783f57.tar.gz
Merge pull request #94527 from HolonProduction/who-needs-source-code
Add note about `Script.has_source_code` and GDScript binary tokenization
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/Script.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/classes/Script.xml b/doc/classes/Script.xml
index fa8e4ef5f2..45f0bbb8aa 100644
--- a/doc/classes/Script.xml
+++ b/doc/classes/Script.xml
@@ -93,6 +93,7 @@
<return type="bool" />
<description>
Returns [code]true[/code] if the script contains non-empty source code.
+ [b]Note:[/b] If a script does not have source code, this does not mean that it is invalid or unusable. For example, a [GDScript] that was exported with binary tokenization has no source code, but still behaves as expected and could be instantiated. This can be checked with [method can_instantiate].
</description>
</method>
<method name="instance_has" qualifiers="const">