crabs-game/scripts/UI.gd

6 lines
143 B
GDScript

extends Control
func _process(delta):
var origin = get_tree().root.get_viewport().canvas_transform.get_origin()
rect_position.x = -origin.x