Component child with area can't trigger onClick event #1029
|
Version 4000.0.0-alpha.26 Description GameObj added as a child can not trigger onClick event. Also. If the parent component has area, then only the onClick event of parent can be triggered. |
Answered by
mflerackers
Jan 29, 2026
Replies: 1 comment 1 reply
|
This has nothing to do with being a child per se. The problem seems to be that the parent has fixed() and the child doesn't. |
1 reply
Answer selected by
r000tmnt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This has nothing to do with being a child per se. The problem seems to be that the parent has fixed() and the child doesn't.
The child is not at the correct position, it doesn't have fixed itself, so it should be in the center, not the top left corner.
It accepts clicks in the position where it should be, it is just drawn in the wrong position.