I have some GUI buttons that don’t work on mobile mysteriously, while others do. They ALL have the Activated property set to ON, I double checked that.
I am using the .Activated event to fire the actions.
I have seen this come up before but I dont know a good solution, why is this behavior inconsistent? Why do some work and not others?
ALSO: When i tap them i mobile, I can see them activate, but the action thats supposed to happen does not fire, I also added a print so i can be sure, and the print does not print in dev console on mobile.
I see… This is my problem too before because of sizes of different devices.
The reason for it is the button got resized (via Scale) because of screen size and now the size of the button is different from the parent frame as the parent frame got force resize by the UIAspectRatioConstraint.
I fixed mine by adding UIAspectRatioConstraint on the button.
P.S: I don’t know if it works for you but let me know.
Yeah, I have had a similar problem in the past where I played my game on mobile and when I clicked on a button it shows that I clicked it but no action was executed, I solved this by using the MouseButton1Down or MouseButton1Up events.
I can clearly see the button being activated on mobile, the background color changes as we would expect. However the connected events do not fire, which i have a print as well for testing so I should see this in dev console on mobile.
I want to reiterate that the GUI button on the left work perfectly fine.
Ok THIS worked and I have to say this is super frustrating that Roblox has bugs like this. Why in the world would a MouseButton event work and the .Activated not work on mobile. We are not even using Mouse on mobile!!! That EXACT mouse button event should NOT fire!
We need Roblox to fix stuff like this, I wasted an hour trying to figure this out.