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

iOS buttons issue

$
0
0
hi guys, I'm really struggling to work out how to make an ios button from a ui image?? Ive tried so many things and cant seem to get it working, the below script works but makes the whole screen clickable which obviously doesn't work with multiple buttons :'( Any suggestions? using UnityEngine; using System.Collections; using UnityEngine.UI; //Required //LOADS LEVEL/SCENE FROM THE UI public class LoadSceneIOS : MonoBehaviour { public string loadTheScene; void Update () { foreach (Touch touch in Input.touches) { if (touch.phase == TouchPhase.Began){ Application.LoadLevel(loadTheScene); //Load the scene } } } }

Viewing all articles
Browse latest Browse all 4709

Trending Articles



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