2021-01-29 22:11:14 +10:30
|
|
|
extends Control
|
2019-12-21 20:42:19 +10:30
|
|
|
|
2024-03-23 19:41:34 +10:30
|
|
|
onready var viewport := $'%viewport'
|
2020-05-02 16:09:51 +09:30
|
|
|
|
2019-12-21 20:42:19 +10:30
|
|
|
func _draw():
|
2024-03-22 21:27:13 +10:30
|
|
|
draw_texture_rect(viewport.get_texture(), Rect2(Vector2.ZERO, rect_size), false)
|
|
|
|
# texture = viewport.get_texture()
|