Samuel Girardin Posted July 18, 2017 Share Posted July 18, 2017 Hi, Does it work as it should do ? https://www.babylonjs-playground.com/#XCPP9Y#152 One button, property isHitTestVisible set to false, the button is still clickable ? Is that normal ? I was expecting the opposite. Quote Link to comment Share on other sites More sharing options...
Samuel Girardin Posted July 18, 2017 Author Share Posted July 18, 2017 That works if the button is a child of a container (rectangle for ie), and this last with isHitTestVisible set to false : https://www.babylonjs-playground.com/#XCPP9Y#153 On the first case, even if the button is at the top level (child of the advanced texture), isHitTestVisible is not take into account. It looks like it's missing loop through the childrens. @Deltakosh any idea ? Quote Link to comment Share on other sites More sharing options...
Samuel Girardin Posted July 18, 2017 Author Share Posted July 18, 2017 public _processPicking(x: number, y: number, type: number): boolean { if (!this.contains(x, y)) { return false; } // new if (!this.isHitTestVisible) { return false; } in button.ts the if on isHitTestVisible seems to fix my problem. I'm quite sure that's a dirty solution Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 18, 2017 Share Posted July 18, 2017 Oups...completely missed this one I'll fix it asap! Quote Link to comment Share on other sites More sharing options...
Samuel Girardin Posted July 18, 2017 Author Share Posted July 18, 2017 @deltakosh I think you bug in your fix , you have deleted the if statement in _processPicking (button.ts) if (!this.contains(x, y)) { return false; } https://www.babylonjs-playground.com/#XCPP9Y#156 , only one event is fired Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 18, 2017 Share Posted July 18, 2017 I'm getting old... This is now ACTUALLY fixed Samuel Girardin 1 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.