Skip to content

Commit

Permalink
Merge pull request #94527 from HolonProduction/who-needs-source-code
Browse files Browse the repository at this point in the history
Add note about `Script.has_source_code` and GDScript binary tokenization
  • Loading branch information
akien-mga committed Jul 19, 2024
2 parents 293c0f7 + f06504c commit 566adc6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/classes/Script.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit 566adc6

Please sign in to comment.