소스 검색

Fix description of typed resource exports

`AnimationNode`'s inherited classes are `Resource`, `RefCounted`, and `Object`.

I assume it meant to say "derived classes", or something along the lines of
"and all classes which inherit it".
Sai Nane 1 년 전
부모
커밋
f10b322c27
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      tutorials/scripting/c_sharp/c_sharp_exports.rst
  2. 1 1
      tutorials/scripting/gdscript/gdscript_exports.rst

+ 1 - 1
tutorials/scripting/c_sharp/c_sharp_exports.rst

@@ -342,7 +342,7 @@ Therefore, if you specify a type derived from Resource such as:
     public AnimationNode AnimationNode { get; set; }
 
 The drop-down menu will be limited to AnimationNode and all
-its inherited classes. Custom resource classes can also be used,
+its derived classes. Custom resource classes can also be used,
 see :ref:`doc_c_sharp_global_classes`.
 
 It must be noted that even if the script is not being run while in the

+ 1 - 1
tutorials/scripting/gdscript/gdscript_exports.rst

@@ -242,7 +242,7 @@ Therefore, if you specify an extension of Resource such as:
     @export var resource: AnimationNode
 
 The drop-down menu will be limited to AnimationNode and all
-its inherited classes.
+its derived classes.
 
 It must be noted that even if the script is not being run while in the
 editor, the exported properties are still editable. This can be used