CanvasLayer shows UI very small in the top left of the screen

Godot Version

4.2.2

Question

i had some ui made before i scripted my player, and it didnt follow the camera although being its child. i then asked chatgpt which told me to put my ui inside a canvaslayer, which i did, and now it does follow the camera but the ui is WAYY off.

in editor

in game

edit: the hearts are partially greyed out cus i scripted that to test it, not part of the issue.

in the canvas layer, your GUI node, try enabling ‘follow viewport’ in the inspector