Cannot get my Buttons to detect clicks when using Camera and CanvasLayer

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

So here’s my setup
Imgur: The magic of the Internet and I cannot get my two texture buttons to detect any clicks. The canvas layer is layer = 2 and this is the camera code I am using.
(also the buttons under the UI control node also cannot be clicked)
The camera isnt following anyone, just need it to pan around when the user drags.

func _input(event):
if event is InputEventScreenDrag:
	position += event.relative.normalized() * -1 * camera_speed
:bust_in_silhouette: Reply From: njamster

If the CanvasLayer’s layer-property is set to 2, it’s drawn above your buttons. Thus, If anything in the ui-node stops your mouse inputs, they won’t reach the buttons. Try setting the mouse_filter-property of your ui-node to “Ignore”.