@tool extends Control func _ready() -> void: connect("resized", _center_pivot) _center_pivot() func _center_pivot() -> void: pivot_offset = size/2.0