Explorar o código

Merge pull request #7994 from Helmasko/patch-2

Custom drawing in 2D update gdscript
Max Hilbrunner hai 1 ano
pai
achega
6981d930f8
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      tutorials/2d/custom_drawing_in_2d.rst

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

@@ -69,7 +69,8 @@ redrawn if modified:
 
 
     extends Node2D
     extends Node2D
 
 
-    export (Texture) var texture setget _set_texture
+    @export var texture: Texture: 
+	    set = _set_texture
 
 
     func _set_texture(value):
     func _set_texture(value):
         # If the texture variable is modified externally,
         # If the texture variable is modified externally,