How do I find the top left corner of a camera2d by script?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By SupToasty
:warning: Old Version Published before Godot 3 was released.

I want my gui to be at the top left corner of my player’s camera which is zoomed to .5x & .5y

:bust_in_silhouette: Reply From: volzhs

You don’t need to calculate for it.
To locate fixed position for gui, you can use CanvasLayer.

Add CanvasLayer for gui, and put all gui under CanvasLayer.
Then your gui will not be moved or scaled.

Worked. Thanks volzhs.

SupToasty | 2016-04-12 22:02