-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't interact with widgets added to layers other than Background #478
Comments
The problem is that layers added with Adding area state will fix the immediate issue. It looks like it can only be added with a frame delay, since the size of the child contents needs to be known. This could be a blocker, but the |
I just needed to draw main part of ui in the middle or foreground layer, and draw some backgrounds based on the response of the main part. The backgrounds do not have to be enabled for interaction. So it seems doable with But it seems all built-in |
I wasn't clear. I'm talking about It is possible to use the |
I see. I'll dig into it and see if I can get it to work. |
The only way to currently order widgets back-to-front is by using |
just change the egui_template code into:
and the widgets couldn't be interacted with any more. I suppose interactions are allowed in other layers because
egui::LayerId::allow_interaction
returns true? No more info could be found in the doc. It seems to be a bug.The text was updated successfully, but these errors were encountered: