diff --git a/tutorials/2d/custom_drawing_in_2d.rst b/tutorials/2d/custom_drawing_in_2d.rst index ca073d185..c13817ded 100644 --- a/tutorials/2d/custom_drawing_in_2d.rst +++ b/tutorials/2d/custom_drawing_in_2d.rst @@ -69,7 +69,8 @@ redrawn if modified: extends Node2D - export (Texture) var texture setget _set_texture + @export var texture: Texture: + set = _set_texture func _set_texture(value): # If the texture variable is modified externally,