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?

  • spaceyjase replied to this.
  • Hexxxen in the Inspector, change the UI node mouse filter properties to Ignore. Your diagnosis is correct as it is handling all input which prevents it propagating further (the default of Stop).

    (rtfm, mouse filter values)

    Hexxxen in the Inspector, change the UI node mouse filter properties to Ignore. Your diagnosis is correct as it is handling all input which prevents it propagating further (the default of Stop).

    (rtfm, mouse filter values)

      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