Im trying to make zoom buttons but when i change my cameras zoom i cant get its attached UI to scale along with it as shown in the images below, iv tried the best i can to make it work but haven't been able to workout a way.
This is my buttons code
func _on_zoom_pressed(zoom):
if zoom == 0:
get_node("Camera2D").zoom.x += 0.25
get_node("Camera2D").zoom.y += 0.25
else:
get_node("Camera2D").zoom.x -= 0.25
get_node("Camera2D").zoom.y -= 0.25
and the layout of my camera and UI can be seen in the screenshots