I created a few buttons using BABYLON.GUI.Button.CreateSimpleButton method. The code working fine in desktop view but not in mobile view.
I use the following way to calculate the button size dynamically according to the current screen height. So that the button will be position nicely in the view.
And the picking working fine in desktop view but not working correctly in mobile view, for example in mobile device when you click B1, it actually clicking B2.
Hi again, C. Sorry for the slow replies. I have no answers, but be sure to carefully search the OLD BJS forum (and this one, too)… for certain keywords (as many as you can).
A few returns… maybe with some ideas inside. (fingers crossed) Try other keywords, too. I saw the term ._hardwareScalingLevel in that last search return. That term makes sense for YOUR problem, eh?
You know how it goes. The more search terms you have, the better the returns… from docs, forum, and playground searches. The more fishing rods and types of lures in water, the better the fishing. heh.
Previously my website was been hacked. Now have recovered. I try @Wingnut suggestion using adative scaling which fix the display issue but still have picking issue. If I change my device to landscape view, everything work fine but when I swith to portrait view, the picking not working correctly.
When the layout is set to null, the picking is not working in portrait mode but working in landscape mode. When I comment out Layout =null, the picking is working fine for both portrait and landscape mode. Any idea?