Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

GUI.Button works on desktop player but not iOS

$
0
0
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?

Viewing all articles
Browse latest Browse all 4709

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>