Skip to content

Commit 29e83d3

Browse files
authored
Merge pull request #11059 from Zshandi/patch-2
Update resources.rst to make inner class note more clear
2 parents 0b5a7c3 + 6e93429 commit 29e83d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tutorials/scripting/resources.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,9 @@ Now, select the :ref:`CharacterBody3D <class_CharacterBody3D>` node which we nam
362362

363363
Beware that resource files (\*.tres/\*.res) will store the path of the script
364364
they use in the file. When loaded, they will fetch and load this script as an
365-
extension of their type. This means that trying to assign a subclass, i.e. an
366-
inner class of a script (such as using the ``class`` keyword in GDScript) won't
367-
work. Godot will not serialize the custom properties on the script subclass properly.
365+
extension of their type. This means that trying to assign an
366+
inner class of a script (i.e. using the ``class`` keyword in GDScript) won't
367+
work. Godot will not serialize the custom properties on the script inner class properly.
368368

369369
In the example below, Godot would load the ``Node`` script, see that it doesn't
370370
extend ``Resource``, and then determine that the script failed to load for the

0 commit comments

Comments
 (0)