How to make the buttons follow the camera

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

I am making an android game. I have created a scene with the touch controls and added it to all the scenes. Some scenes are larger than other scene . So, when the player walks in the larger scene the camera follows it but the buttons don’t. So, the controls are no longer visible. I want the buttons to stay in the view

This video might be of some help https://youtu.be/8-k6mDGPfvQ

Mintteacup | 2023-03-13 09:24

:bust_in_silhouette: Reply From: exuin

Make the root node of the touch controls a CanvasLayer. They will not follow the camera because they are on a separate CanvasLayer than it.

1 Like