浏览代码

Merge pull request #11059 from Zshandi/patch-2

Update resources.rst to make inner class note more clear
Matthew 1 周之前
父节点
当前提交
29e83d3863
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      tutorials/scripting/resources.rst

+ 3 - 3
tutorials/scripting/resources.rst

@@ -362,9 +362,9 @@ Now, select the :ref:`CharacterBody3D <class_CharacterBody3D>` node which we nam
 
 
     Beware that resource files (\*.tres/\*.res) will store the path of the script
     Beware that resource files (\*.tres/\*.res) will store the path of the script
     they use in the file. When loaded, they will fetch and load this script as an
     they use in the file. When loaded, they will fetch and load this script as an
-    extension of their type. This means that trying to assign a subclass, i.e. an
-    inner class of a script (such as using the ``class`` keyword in GDScript) won't
-    work. Godot will not serialize the custom properties on the script subclass properly.
+    extension of their type. This means that trying to assign an
+    inner class of a script (i.e. using the ``class`` keyword in GDScript) won't
+    work. Godot will not serialize the custom properties on the script inner class properly.
 
 
     In the example below, Godot would load the ``Node`` script, see that it doesn't
     In the example below, Godot would load the ``Node`` script, see that it doesn't
     extend ``Resource``, and then determine that the script failed to load for the
     extend ``Resource``, and then determine that the script failed to load for the