royibernthal Posted June 18, 2017 Share Posted June 18, 2017 Click on the button to toggle the image visibility. After you show the image then hide it again, the part of the button where the image was (the right part) no longer triggers pointer events. http://www.babylonjs-playground.com/#XCPP9Y#111 Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted June 19, 2017 Share Posted June 19, 2017 @royibernthal the control seems to stay active after making the object invisible again, removeControl fixes it as shown in the PG below, but i bet Deltakosh would want to automate it with visiblity changes anyway http://www.babylonjs-playground.com/#XCPP9Y#112 royibernthal 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 19, 2017 Share Posted June 19, 2017 Bug spotted I'll fix it Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 19, 2017 Share Posted June 19, 2017 And fixed! royibernthal 1 Quote Link to comment Share on other sites More sharing options...
royibernthal Posted June 19, 2017 Author Share Posted June 19, 2017 Thanks Quote Link to comment Share on other sites More sharing options...
royibernthal Posted June 20, 2017 Author Share Posted June 20, 2017 Bug when putting image in container http://www.babylonjs-playground.com/#XCPP9Y#115 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 20, 2017 Share Posted June 20, 2017 I have not seen BABYLON.GUI.Container() in the doc. You can use a Rectangle or StackPanel as a container. On this PG it works http://www.babylonjs-playground.com/#XCPP9Y#118 Quote Link to comment Share on other sites More sharing options...
royibernthal Posted June 20, 2017 Author Share Posted June 20, 2017 That's because the container in your PG is not in front of the button http://www.babylonjs-playground.com/#XCPP9Y#120 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 20, 2017 Share Posted June 20, 2017 Why do you think it is a bug? You added a container with no info. So it is fullscreen: See here with red background: http://www.babylonjs-playground.com/#XCPP9Y#122 The container capture the picking as it is the last one added so no more picking on the button. You can turn off picking on your container with isHitTestVisible: http://www.babylonjs-playground.com/#XCPP9Y#123 Quote Link to comment Share on other sites More sharing options...
royibernthal Posted June 20, 2017 Author Share Posted June 20, 2017 Yup you are right my bad. Locally I had issues with both isVisible and isHittestVisible that for some reason weren't completely solved after your first fix. I just updated to the newest bjs version and they're fixed now, I guess you added some more magic in the meantime Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 20, 2017 Share Posted June 20, 2017 I'm always adding magic royibernthal 1 Quote Link to comment Share on other sites More sharing options...
ian Posted June 28, 2017 Share Posted June 28, 2017 Sabbra cadabra 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.