Skip to content

Commit 6981d93

Browse files
authored
Merge pull request #7994 from Helmasko/patch-2
Custom drawing in 2D update gdscript
2 parents 2d087ca + 1b02898 commit 6981d93

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)