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

Mobile GUI Buttons

$
0
0
I am making a game for IOS, and I want a button to be able to send output to a gameobject. For example, when the UI button is touched, the camera would move up. My button can read inputs from touch, but cannot broadcast them to the gameobject. My script is: using UnityEngine; using System.Collections; public class Test: MonoBehaviour { void OnMouseDown() { Debug.Log ("Mouse Down"); } void OnMouseUp() { Debug.Log ("Mouse up"); } } Should I use global variables? I cannot find anything like this for a button in ios. Thank you for your time.

Viewing all articles
Browse latest Browse all 4709

Latest Images

Trending Articles



Latest Images

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