浏览代码

add missing annotation prefix

Hana - Piralein 1 年之前
父节点
当前提交
e598653d4a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tutorials/best_practices/godot_interfaces.rst

+ 1 - 1
tutorials/best_practices/godot_interfaces.rst

@@ -58,7 +58,7 @@ access.
     @export var script_type: Script
     @export var script_type: Script
 
 
     # Must configure from the editor, defaults to null.
     # Must configure from the editor, defaults to null.
-    export var const_script: Script:
+    @export var const_script: Script:
         set(value):
         set(value):
             if Engine.is_editor_hint():
             if Engine.is_editor_hint():
                 const_script = value
                 const_script = value