Skip to content

Commit 566adc6

Browse files
committed
Merge pull request godotengine#94527 from HolonProduction/who-needs-source-code
Add note about `Script.has_source_code` and GDScript binary tokenization
2 parents 293c0f7 + f06504c commit 566adc6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/classes/Script.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
<return type="bool" />
9494
<description>
9595
Returns [code]true[/code] if the script contains non-empty source code.
96+
[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].
9697
</description>
9798
</method>
9899
<method name="instance_has" qualifiers="const">

0 commit comments

Comments
 (0)