GUI not following the camera

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

i have a GUI attatched to the camera and the camera margin is enabled becus of that the GUI does not follow the camera

do you have a way exapt for disabling margin

Do you have a good reason for having your UI attached to the camera? What do you want to achieve with that?

BraindeadBZH | 2019-07-31 16:40

:bust_in_silhouette: Reply From: Zylann

To make the GUI stick to the screen when you camera moves, a simpler way is to NOT make it child of the camera. Instead, just create a CanvasLayer and place the UI under it. This way, position of the GUI will be independent from the other graphics.