royibernthal Posted June 5, 2017 Share Posted June 5, 2017 Sorry for spamming with feature requests... It'd be great if clicks on transparent areas won't be intercepted. For instance, say we have 2 containers, both span over the whole stage. Both containers have elements aligned differently in a way that all elements are perfectly visible. The container at that was added last will intercept clicks on transparent areas, and not allow any interaction with the container that was added before. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 6, 2017 Share Posted June 6, 2017 I think this is not something possible. Transparency is a color so to speak. the element is always present, so clickable in the case of a button But you can use button.isVisible to hide an element rather than make it transparent. royibernthal and GameMonetize 2 Quote Link to comment Share on other sites More sharing options...
royibernthal Posted June 16, 2017 Author Share Posted June 16, 2017 What do you think about having an option in a control to not intercept mouse events at all when visible? e.g. control.mouseEnabled = false By the way, when you set isVisible to false, is the control not rendered at all? Is it safe to leave on stage invisible controls or will they use considerable resources nonetheless? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 19, 2017 Share Posted June 19, 2017 already there: control.isHitTestVisible = false; In the doc:http://doc.babylonjs.com/overviews/gui#events Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.