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

Gui Texture Differences

$
0
0
I want to be able to touch a gui image on an ios device and have it do something. I have the code: using UnityEngine; using System.Collections; public class Test: MonoBehaviour { void OnMouseDown() { Debug.Log ("Mouse Down"); } void OnMouseUp() { Debug.Log ("Mouse up"); } } In one project, I can click an empty gameobject with a guitexture attached to it, and the script works. In my main project, I can not even add a visible texture to the gui texture, so I can't use my script. If anyone knows what is happening, or an alternative, please share it. Thanks! (My code is in C#)

Viewing all articles
Browse latest Browse all 4709

Trending Articles



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