So I am making a RTS type game, I have a selectable unit that works just fine. When I add a Canvas Layer for ui and stuff the units are no longer clickable. I think Canvas Layer is rendered on top of the level which is why the units can't detect my inputs? I tried playing around with z indexes and Layer properties but couldn't find how to fix this issue. Any help, please?
Having an issue with canvas Layer.
spaceyjase "rtfm" is a bit rude. Anyways, CanvasLayer doesn't inherit from Control, and does not have the mouse_filter
property. It's possible that one of its descendants has mouse_filter
set to MOUSE_FILTER_STOP
and is eating the event, or it could be something else.
@Hexxxen See if that fix works. Both PASS and IGNORE are fine on a Control you don't want blocking clicks. If that isn't the issue, can you share your unit selection code?
4 days later