Skip to content

Commit

Permalink
Merge pull request godotengine#55974 from skyace65/ScriptDoc
Browse files Browse the repository at this point in the history
Clarify that the script class should not be used directly
  • Loading branch information
mhilbrunner authored Dec 16, 2021
2 parents cedd690 + 9f983ee commit edd3ca4
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 @@ -5,6 +5,7 @@
</brief_description>
<description>
A class stored as a resource. A script extends the functionality of all objects that instance it.
This is the base class for all scripts and should not be used directly. Trying to create a new script with this class will result in an error.
The [code]new[/code] method of a script subclass creates a new instance. [method Object.set_script] extends an existing object, if that object's class matches one of the script's base classes.
</description>
<tutorials>
Expand Down

0 comments on commit edd3ca4

Please sign in to comment.