diff options
author | HolonProduction <holonproduction@gmail.com> | 2024-07-19 09:40:42 +0200 |
---|---|---|
committer | HolonProduction <holonproduction@gmail.com> | 2024-07-19 10:38:55 +0200 |
commit | f06504ca0b7a3e3445df3ab72b80808690d4c53b (patch) | |
tree | 6758c6752a0748332e1fe7c279e4b32f8d60dd96 /doc/classes | |
parent | da4f6e439c0daec87d3f87f86b5b4592fca44fdb (diff) | |
download | redot-engine-f06504ca0b7a3e3445df3ab72b80808690d4c53b.tar.gz |
Add note about `Script.has_source_code` and GDScript binary tokenization
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/Script.xml | 1 |
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"> |