瀏覽代碼

adding export makes the example clearer

Juan Linietsky 9 年之前
父節點
當前提交
b955459479
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tutorials/2d/custom_drawing_in_2d.rst

+ 1 - 1
tutorials/2d/custom_drawing_in_2d.rst

@@ -68,7 +68,7 @@ redrawn if modified:
 
 
     extends Node2D
     extends Node2D
 
 
-    var texture setget _set_texture
+    export var texture setget _set_texture
 
 
     func _set_texture(value):
     func _set_texture(value):
         #if the texture variable is modified externally,
         #if the texture variable is modified externally,