RhythmGame/scripts/NotePainter.gd

9 lines
250 B
GDScript3
Raw Normal View History

extends Control
export var ViewportPath := @'../NoteHandler/Viewport'
onready var Viewport := get_node(ViewportPath)
2020-05-02 16:09:51 +09:30
func _draw():
draw_texture_rect(Viewport.get_texture(), Rect2(Vector2.ZERO, rect_size), false)
# texture = Viewport.get_texture()