Hello!
I have a button with an attached script.
I’ve added a simple handler function which is supposed to run when the button is clicked.
public void FriendButtonHandler()
{
Debug.Log("Hello from friend!");
}
In the Unity editor, everything works as expected, and the console shows the logged message.
However, when I run the Unity project on an iOS device, the function never gets called.
iOS does seem to register the clicks somewhat, since the button does change colors correctly through the sprite swap. Yet, the onClick handler script is never called by iOS.
I have the EventSystem and Graphic Raycaster in the scene, and I have not changed any default settings.