- Home /
how to detect if my game is running on iphone or in Unity?
When running on the iPhone the user input will be via tilt of the device. If running on Unity the user input will be the arrow keys.
I have the code to handle user input. But how do I tell in my c# script if the app is running on the iphone or in Unity?
I want something I can put in a if-statement so I can read the keyboard or read the accelerator.
Comment
Best Answer
Answer by Eric5h5 · Sep 04, 2011 at 06:11 AM
$$anonymous$$y bad... late at nite and brain was fuzzy... I have updated my question text. I'll check out application.platform...
Your answer
Follow this Question
Related Questions
How to simulate [iOS] app suspend on the Unity editor? 2 Answers
A node in a childnode? 1 Answer
Map iOS joystick to the input manager? 2 Answers
How can i make button on iOS instead key 0 Answers