How to place a node relative to the view?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Thakee Nathees

I am new to godot engine and working on a HUD for my little game but I don’t know how to place a node ( ex: a colored rectangle ) relative to the view ( I want to place it to the top right of the view all the time ). please some one help me

:bust_in_silhouette: Reply From: Fenderbate

You have to add a CanvasLayer to your scene and add the things you want to stay on the screen as a child to it.
CanvasLayer demonstration