A problem with 2 controls

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

Hello people,

I have a certain problem with these 2 controls:

“Control” and “Control1” have the same script:

extends Control

func _ready():
	connect("mouse_entered",self,"mouse_is_in")

func mouse_is_in():
	print(name)

What I want to do is both of them printing their name. However it only prints the name of “Control2”. If I put “Control” under “Control2” it only print the name of “Control”.
I tried changing the mouse filters but without successs.

Please help me.

:bust_in_silhouette: Reply From: Onirochan

The problem you are facing is that the “youngest” child is always on top, this is why you can select just control2, try placing them on different positions.

But I already what the problem is I just want to know how there is a way around it.
These 2 Control Nodes must have the same positions. It’s important for my project.

theAbsoluteKing | 2018-07-24 20:08