Hello,
I have a GUI Button that controls taking a screenshot, and that works fine. On the desktop player and on iOS.
I also have a GUI Button that controls if an object is visible. On the desktop player the button works fine. However when I come to test it on an iOS device the button hiding an object doesn't work
void OnGUI() {
if (shouldDraw) {
if (GUI.Button(new Rect(Screen.width/25f, Screen.height-120f, Screen.width/3f,25f), "Photo")) {
ap.targetTexture = photo;
ap.Photo();
}
if (GUI.Button(new Rect(Screen.width/25f, Screen.height-150f, Screen.width/3f,25f), "On/Off Object 1")) {
GO_1.SetActive(!GO_1.activeSelf);
}
}
}
Does anybody have any ideas on what the issue is? Or better yet a fix?
↧