Skip to content

Commit 1b02898

Browse files
authored
Update custom_drawing_in_2d.rst
1 parent 5b557cc commit 1b02898

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tutorials/2d/custom_drawing_in_2d.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ redrawn if modified:
6969

7070
extends Node2D
7171

72-
export (Texture) var texture setget _set_texture
72+
@export var texture: Texture:
73+
set = _set_texture
7374

7475
func _set_texture(value):
7576
# If the texture variable is modified externally,

0 commit comments

Comments
 (0)