- Home /
Creating a Game for IPhone/Android but testing it on a P.C.
At the Moment I'm working on a game for the IPhone and Android but I only have the free version of unity. So my question is will code like "function OnMouseUp(){....}" work on the iphone and android if not what code can I use the will work for simply clicking a button but will work on all android/iphone and pc.
Answer by jonas-echterhoff · Jun 16, 2011 at 08:26 AM
OnMouseUp, etc will not work on iOS/Android (there is no mouse). Instead, use Input.touches, and test your game using the Unity Remote apps available for both iOS and Android, which let you use your mobile device as a remote controller for the unity editor (also possible in the free version as of Unity 3.3).
Your answer
Follow this Question
Related Questions
It's possible to uninstall a game via code (C#)? 2 Answers
How can i set up a 2d game for iphone/android. 2 Answers
Detecting Touch on Iphone and Android 1 Answer
AWS .NET SDK on iPhone 1 Answer
Android Build has issues 1 Answer