add mouse_filter attribute for canvas layer that applies on all child control node #10289
melon-Li-SomeOneTookMyNamePluhhh
started this conversation in
GUI
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
version: 4.2
Since most people use a canvas layer to contain controll nodes. This feature could be very helpful. Forexample, if I have two sets of UI under two canvas layer in the same scene (game UI and setting UI). If I want to switch between UI and makesure the other set of UI don't react to input. I must set the mouse_filter attribute for all controll nodes under the disabled canvas layer one by one. By giving canvas layer the mouse filter attribute, it will only take one line of code.
(please lmk if there are eaiser method for implementing this UI switch system with the current version though)
Beta Was this translation helpful? Give feedback.
All reactions